Daniel Lemire personal blog
Making all your integers positive with zigzag encoding
You sometimes feel the need to make all of your integers positive, without losing any information. That is, you want to map all of your integers from 'signed' integers (e.g., -1, 1, 3, -3) to 'unsigned integers' (e.g., 3,2,6,7). This could be useful if you have a fast function to compress integers that fails to ……
- Points
- 109
- HN comments
- 40
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringMath & Algorithms2022
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Nov 25, 2022 | Making all your integers positive with zigzag encoding by jjgreen | 109 | 40 |