Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
louisstow
· 4y ago · 0 comments
Can someone explain how it's lossless if there's a chance of hash collisions in the index?
Comments
[–]
ErikCorry
4y ago
The encoder can always generate the code for a literal pixel if the required colour is not found in the index.
[–]
adgjlsfhk1
4y ago
TLDR is hash collisions are an explicit part of the format. Encode and Decode are both specified to use the same hash function, so the hash collisions will all cancel out.