Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| data:packing [2026/04/28 22:09] – [Minimum required bits] skander | data:packing [2026/05/03 14:25] (current) – [Minimum required bits] skander | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Minimum required bits ===== | ===== Minimum required bits ===== | ||
| + | |||
| + | Encoding information as binary digits, or bits, requires an encoding scheme that defines how values are mapped to bit patterns and how those bit patterns are decoded back into values. | ||
| + | |||
| + | For a finite set of possible values, the minimum fixed-width binary representation requires enough bits to uniquely encode every value. This bit width is determined by the cardinality of the value set. | ||
| < | < | ||
| - | b = ⌈log₂(C)⌉ | + | ceil(log2(number of possible values)) |
| </ | </ | ||