Implementing a hilbert map of the internet

Posted by Martin on Stack Overflow See other posts from Stack Overflow or by Martin
Published on 2009-12-29T20:45:53Z Indexed on 2010/05/14 22:44 UTC
Read the original article Hit count: 248

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?

© Stack Overflow or respective owner

Related posts about xkcd

Related posts about hilbert-curve