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

SubmittedTitle on HNPointsComments
Nov 25, 2022Making all your integers positive with zigzag encoding by jjgreen10940

More from Daniel Lemire

All 87 posts →

Related posts from the same era