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 21:30] – skander | data:packing [2026/05/03 14:25] (current) – [Minimum required bits] skander | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Packing ====== | ====== Packing ====== | ||
| - | ' | + | ' |
| + | |||
| + | In data representation | ||
| ===== 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. | ||
| + | < | ||
| + | ceil(log2(number of possible values)) | ||
| + | </ | ||