3 ms·
Collision detection is far cheaper. One method: Simply add up all the bytes of all seen placenames while running your fast algorithm. This is effectively
by londons_explore 3y ago
Collision detection is far cheaper. One method:
Simply add up all the bytes of all seen placenames while running your fast algorithm. This is effectively a checksum of all bytes of placename data.
Then at the end, calculate the 'correct' name-sum (which can be done cheaply). If it doesn't match, a collision occurred.
- anonymoushn 3y agoYou can design inputs that defeat this scheme though. I thought the point was to be correct for all valid inputs.