Implementing a hilbert map of the internet
- by Martin
In the XKCD comic 195 a design for a map of the internet address space is suggested using a hilbert curve so that items from a similar IPs will be clustered together.
Given an IP address, how would I calculate the 2D coordinates (in the range zero to one) that this IP is located on such a map?