The Hamming distance is also equivalent to the Manhattan distance between two vertices in ann-dimensional hypercube, where nis the length of the words.
2
以上结束了我们对曼哈顿距离的初次讨论,在今后我们处理基于网格的游戏剧本时迟早会用到它的。
That concludes our first look at Manhattan distance, which will come in handy again in the future when we deal with grid-based scenarios.
3
我们上面讨论的这种距离被称为曼哈顿距离,这样叫是因为曼哈顿是以美国风格的城市街区布局的。
This distance that we've described is called the Manhattan distance, so-called because Manhattan is laid out in US-style city blocks.