3 ms·
Nit: You should implement quadratic probing with triangular numbers by addition for a slight speedup. I.e. x+= i, rather than x = ... × ...
by notatcomputer68 8y ago
Nit: You should implement quadratic probing with triangular numbers by addition for a slight speedup. I.e. x+= i, rather than x = ... × ...
- attractivechaos 8y agoOf course. Notable libraries implementing quadratic probing all use addition instead of multiplication. The example in the blog post is just for demonstration purpose.
- abhishekjha 8y ago>addition instead of multiplication What is the advantage of this?