Most viewed recipes by Yong Shin http://code.activestate.com/recipes/users/4184933/views/2013-01-17T20:50:21-08:00ActiveState Code RecipesHamming Neighbors (Python) 2013-01-17T20:50:21-08:00Yong Shinhttp://code.activestate.com/recipes/users/4184933/http://code.activestate.com/recipes/578423-hamming-neighbors/ <p style="color: grey"> Python recipe 578423 by <a href="/recipes/users/4184933/">Yong Shin</a> (<a href="/recipes/tags/distance/">distance</a>, <a href="/recipes/tags/dynamic/">dynamic</a>, <a href="/recipes/tags/hamming/">hamming</a>, <a href="/recipes/tags/programming/">programming</a>). </p> <p>HammingNeighbors returns all integers that are k number of bits away (i.e. k Hamming distance away) from an integer. <br /> The algorithm uses dynamic programming.</p>