Store the Hamming weight of each possible byte in a 256-entry table. Extract each byte of a word by a logical right shift and a bit mask, then sum its table entries. The byte positions partition the word's bits, proving the formula. A 32-bit word needs four lookups, which can be unrolled. Logical extraction does not depend on the endianness of a stored word. The speed advantage depends on table-access costs as well as instruction counts.
Ancestors (6)
Incoming links (58)
- BCH and parity-extension proof of the binary Golay distance
- Binary digit
- Binary order on the discrete cube
- Binary powering multiplication count
- Byte-table population count
- Constant weight of a binary simplex code
- Designed distance
- Dicke state
- Doubly even code
- Even-weight subcode of a binary linear code
- GHZ game
- Half-cube vertex-boundary extrema
- Hamming space
- Hamming-weight obstruction to Fredkin-only Toffoli synthesis
- Minimum distance of a code
- Minimum Hamming distance of a linear code
- Nondegenerate phase-flip correction in the Steane code
- One-qubit reduction of Dicke-state superpositions
- Orthogonal generators of doubly even codes
- Parity-check extension of a linear code
- Past exam of the computer science course of the University of Oxford / 2015 / Computer networks / 1 / h / Solution
- Past exam of the laser science and quantum information processing course of the University of Oxford / 2017 / 4 / b / Solution
- Past exam of the mathematics course of the University of Cambridge / 2002 / iii / Paper 30 / 1 / Solution
- Past exam of the mathematics course of the University of Cambridge / 2002 / iii / Paper 30 / 2 / Solution
- Past exam of the mathematics course of the University of Cambridge / 2002 / iii / Paper 30 / 3 / Solution
- Past exam of the mathematics course of the University of Cambridge / 2003 / iii / Paper 36 / 1 / Solution
- Past exam of the mathematics course of the University of Cambridge / 2005 / iii / Paper 10 / 1 / Solution
- Past exam of the mathematics course of the University of Cambridge / 2005 / iii / Paper 33 / 3 / Solution
- Past exam of the mathematics course of the University of Cambridge / 2005 / iii / Paper 37 / 5 / b / Solution
- Past exam of the mathematics course of the University of Cambridge / 2005 / iii / Paper 87 / 1 / Solution
- Past exam of the mathematics course of the University of Cambridge / 2005 / ii / Paper 2 / 4J / Solution
- Past exam of the mathematics course of the University of Cambridge / 2006 / iii / Paper 30 / 4 / Solution
- Past exam of the mathematics course of the University of Cambridge / 2007 / ii / Paper 1 / 11G / Solution
- Past exam of the mathematics course of the University of Cambridge / 2008 / ii / Paper 3 / 4G / Solution
- Past exam of the mathematics course of the University of Cambridge / 2009 / ii / Paper 3 / 4H / Solution
- Past exam of the mathematics course of the University of Cambridge / 2010 / iii / Paper 51 / 3 / d / Solution
- Past exam of the mathematics course of the University of Cambridge / 2010 / ii / Paper 3 / 4H / Solution
- Past exam of the mathematics course of the University of Cambridge / 2011 / ii / Paper 3 / 4G / Solution
- Past exam of the mathematics course of the University of Cambridge / 2012 / iii / Paper 67 / 2 / b / Solution
- Past exam of the mathematics course of the University of Cambridge / 2013 / iii / Paper 59 / 4 / a / Solution
- Past exam of the mathematics course of the University of Cambridge / 2015 / ii / Paper 4 / 3G / Solution
- Past exam of the mathematics course of the University of Cambridge / 2017 / ii / Paper 1 / 10G / ii / Solution
- Past exam of the mathematics course of the University of Cambridge / 2017 / ii / Paper 1 / 10G / i / Solution
- Past exam of the mathematics course of the University of Cambridge / 2018 / iii / Paper 109 / 3 / i / Solution
- Past exam of the mathematics course of the University of Cambridge / 2018 / ii / Paper 3 / 3H / Solution
- Past exam of the mathematics course of the University of Cambridge / 2019 / ii / Paper 1 / 11G
- Past exam of the mathematics course of the University of Cambridge / 2019 / ii / Paper 2 / 3G / Solution
- Past exam of the mathematics course of the University of Cambridge / 2020 / ii / Paper 2 / 12I / ii / Solution
- Past exam of the mathematics course of the University of Cambridge / 2021 / ii / Paper 1 / 3K / i / Solution
- Past exam of the mathematics course of the University of Cambridge / 2021 / ii / Paper 2 / 12K / c / Solution
- Past exam of the mathematics course of the University of Cambridge / 2022 / ii / Paper 3 / 3K / b / ii / Solution
- Past exam of the mathematics course of the University of Cambridge / 2026 / iii / Paper 215 / 2 / c / Solution
- Self-orthogonal binary subspace
- Syndrome decoding
- Systematic-matrix proof of extended Golay distance
- Three-error syndrome decoding of extended Golay code
- Weight enumerator
- Worst-case correction guarantee from the Gilbert–Varshamov bound
Synonyms (4)
Discussion (0) New discussion
There are no discussions about this article yet.
Articles by others on the same topic (0)
There are currently no matching articles.