Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
PhilipRoman
on Dec 5, 2024
|
parent
|
context
|
favorite
| on:
How to pack ternary numbers in 8-bit bytes
If you like this sort of thing (and don't care about performance) check out Arithmetic Coding for the most generalized fractional symbol packing algorithm.
kthielen
on Dec 5, 2024
[–]
Or ANS if you want an equally general packing to AC but you care about performance. ;P
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: