%%% This file is part of PlanetMath snapshot of 2009-01-12 %%% Primary Title: city-block metric %%% Primary Category Code: 54E35 %%% Filename: CityBlockMetric.tex %%% Version: 5 %%% Owner: akrowne %%% Author(s): akrowne %%% PlanetMath is released under the GNU Free Documentation License. %%% You should have received a file called fdl.txt along with this file. %%% If not, please write to gnu@gnu.org. \documentclass[12pt]{article} \pagestyle{empty} \setlength{\paperwidth}{8.5in} \setlength{\paperheight}{11in} \setlength{\topmargin}{0.00in} \setlength{\headsep}{0.00in} \setlength{\headheight}{0.00in} \setlength{\evensidemargin}{0.00in} \setlength{\oddsidemargin}{0.00in} \setlength{\textwidth}{6.5in} \setlength{\textheight}{9.00in} \setlength{\voffset}{0.00in} \setlength{\hoffset}{0.00in} \setlength{\marginparwidth}{0.00in} \setlength{\marginparsep}{0.00in} \setlength{\parindent}{0.00in} \setlength{\parskip}{0.15in} \usepackage{html} \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsfonts} %\usepackage{psfrag} %\usepackage{graphicx} %\usepackage{xypic} \begin{document} The \emph{city-block metric}, defined on $\mathbb{R}^n$, is $$ d(a,b) = \sum_{i=1}^n |b_i-a_i| $$ where $a$ and $b$ are \htmladdnormallink{vectors}{http://planetmath.org/encyclopedia/Vector2.html} in $\mathbb{R}^n$ with $a=(a_1,\ldots,a_n)$ and $b=(b_1,\ldots,b_n)$. In two \htmladdnormallink{dimensions}{http://planetmath.org/encyclopedia/Dimension3.html} and with discrete-valued vectors, when we can picture the set of \htmladdnormallink{points}{http://planetmath.org/encyclopedia/Point.html} in $\mathbb{Z} \times \mathbb{Z}$ as a \htmladdnormallink{grid}{http://planetmath.org/encyclopedia/LatticeInMathbbRn.html}, this is simply the \htmladdnormallink{number}{http://planetmath.org/encyclopedia/Number.html} of \htmladdnormallink{edges}{http://planetmath.org/encyclopedia/Adjacent.html} between points that must be traversed to get from $a$ to $b$ within the grid. This is the same problem as getting from corner $a$ to $b$ in a rectilinear downtown \htmladdnormallink{area}{http://planetmath.org/encyclopedia/SurfaceArea.html}, hence the name ``city-block metric.'' \end{document}