Hubbry Logo
Taxicab geometryTaxicab geometryMain
Open search
Taxicab geometry
Community hub
Taxicab geometry
logo
8 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Taxicab geometry
Taxicab geometry
from Wikipedia
In taxicab geometry, the lengths of the red, blue, green, and yellow paths all equal 12, the taxicab distance between the opposite corners, and all four paths are shortest paths. Instead, in Euclidean geometry, the red, blue, and yellow paths still have length 12 but the green path is the unique shortest path, with length equal to the Euclidean distance between the opposite corners, 6√2 ≈ 8.49.

Taxicab geometry or Manhattan geometry is geometry where the familiar Euclidean distance is ignored, and the distance between two points is instead defined to be the sum of the absolute differences of their respective Cartesian coordinates, a distance function (or metric) called the taxicab distance, Manhattan distance, or city block distance. The name refers to the island of Manhattan, or generically any planned city with a rectangular grid of streets, in which a taxicab can only travel along grid directions. In taxicab geometry, the distance between any two points equals the length of their shortest grid path. This different definition of distance also leads to a different definition of the length of a curve, for which a line segment between any two points has the same length as a grid path between those points rather than its Euclidean length.

The taxicab distance is also sometimes known as rectilinear distance or L1 distance (see Lp space).[1] This geometry has been used in regression analysis since the 18th century, and is often referred to as LASSO. Its geometric interpretation dates to non-Euclidean geometry of the 19th century and is due to Hermann Minkowski.

In the two-dimensional real coordinate space , the taxicab distance between two points and is . That is, it is the sum of the absolute values of the differences in both coordinates.

Formal definition

[edit]

The taxicab distance, , between two points in an n-dimensional real coordinate space with fixed Cartesian coordinate system, is the sum of the lengths of the projections of the line segment between the points onto the coordinate axes. More formally,For example, in , the taxicab distance between and is

History

[edit]

The L1 metric was used in regression analysis, as a measure of goodness of fit, in 1757 by Roger Joseph Boscovich.[2] The interpretation of it as a distance between points in a geometric space dates to the late 19th century and the development of non-Euclidean geometries. Notably it appeared in 1910 in the works of both Frigyes Riesz and Hermann Minkowski. The formalization of Lp spaces, which include taxicab geometry as a special case, is credited to Riesz.[3] In developing the geometry of numbers, Hermann Minkowski established his Minkowski inequality, stating that these spaces define normed vector spaces.[4]

The name taxicab geometry was introduced by Karl Menger in a 1952 booklet You Will Like Geometry, accompanying a geometry exhibit intended for the general public at the Museum of Science and Industry in Chicago.[5]

Properties

[edit]

Thought of as an additional structure layered on Euclidean space, taxicab distance depends on the orientation of the coordinate system and is changed by Euclidean rotation of the space, but is unaffected by translation or axis-aligned reflections. Taxicab geometry satisfies all of Hilbert's axioms (a formalization of Euclidean geometry) except that the congruence of angles cannot be defined to precisely match the Euclidean concept, and under plausible definitions of congruent taxicab angles, the side-angle-side axiom is not satisfied as in general triangles with two taxicab-congruent sides and a taxicab-congruent angle between them are not congruent triangles.

Spheres

[edit]
3D balls of radii 1 (red) and 2 (blue) are regular octahedrons: the number of integer lattice points enclosed form the centered octahedral numbers
Grid points on a circle in taxicab geometry as the grid is made finer

In any metric space, a sphere is a set of points at a fixed distance, the radius, from a specific center point. Whereas a Euclidean sphere is round and rotationally symmetric, under the taxicab distance, the shape of a sphere is a cross-polytope, the n-dimensional generalization of a regular octahedron, whose points satisfy the equation:

where is the center and r is the radius. Points on the unit sphere, a sphere of radius 1 centered at the origin, satisfy the equation

In two dimensional taxicab geometry, the sphere (called a circle) is a square oriented diagonally to the coordinate axes. The image to the right shows in red the set of all points on a square grid with a fixed distance from the blue center. As the grid is made finer, the red points become more numerous, and in the limit tend to a continuous tilted square. Each side has taxicab length 2r, so the circumference is 8r. Thus, in taxicab geometry, the value of the analog of the circle constant π, the ratio of circumference to diameter, is equal to 4.

A closed ball (or closed disk in the 2-dimensional case) is a filled-in sphere, the set of points at distance less than or equal to the radius from a specific center. For cellular automata on a square grid, a taxicab disk is the von Neumann neighborhood of range r of its center.

A circle of radius r for the Chebyshev distance (L metric) on a plane is also a square with side length 2r parallel to the coordinate axes, so planar Chebyshev distance can be viewed as equivalent by rotation and scaling to planar taxicab distance. However, this equivalence between L1 and L metrics does not generalize to higher dimensions.

Whenever each pair in a collection of these circles has a nonempty intersection, there exists an intersection point for the whole collection; therefore, the Manhattan distance forms an injective metric space.

Arc length

[edit]

Let be a continuously differentiable function. Let be the taxicab arc length of the graph of on some interval . Take a partition of the interval into equal infinitesimal subintervals, and let be the taxicab length of the subarc. Then[6]

By the mean value theorem, there exists some point between and such that .[7] Then the previous equation can be written

Then is given as the sum of every partition of on as they get arbitrarily small.

Curves defined by monotone increasing or decreasing functions have the same taxicab arc length as long as they share the same endpoints.

To test this, take the taxicab circle of radius centered at the origin. Its curve in the first quadrant is given by whose length is

Multiplying this value by to account for the remaining quadrants gives , which agrees with the circumference of a taxicab circle.[8] Now take the Euclidean circle of radius centered at the origin, which is given by . Its arc length in the first quadrant is given by

Accounting for the remaining quadrants gives again. Therefore, the circumference of the taxicab circle and the Euclidean circle in the taxicab metric are equal.[9] In fact, for any function that is monotonic and differentiable with a continuous derivative over an interval , the arc length of over is .[10]

Triangle congruence

[edit]
Two taxicab right isoceles triangles. Three angles and two legs are congruent, but the triangles are not congruent. Therefore, ASASA is not a congruence theorem in taxicab geometry.

Two triangles are congruent if and only if three corresponding sides are equal in distance and three corresponding angles are equal in measure. There are several theorems that guarantee triangle congruence in Euclidean geometry, namely Angle-Angle-Side (AAS), Angle-Side-Angle (ASA), Side-Angle-Side (SAS), and Side-Side-Side (SSS). In taxicab geometry, however, only SASAS guarantees triangle congruence.[11]

Take, for example, two right isosceles taxicab triangles whose angles measure 45-90-45. The two legs of both triangles have a taxicab length 2, but the hypotenuses are not congruent. This counterexample eliminates AAS, ASA, and SAS. It also eliminates AASS, AAAS, and even ASASA. Having three congruent angles and two sides does not guarantee triangle congruence in taxicab geometry. Therefore, the only triangle congruence theorem in taxicab geometry is SASAS, where all three corresponding sides must be congruent and at least two corresponding angles must be congruent.[12] This result is mainly due to the fact that the length of a line segment depends on its orientation in taxicab geometry.

Applications

[edit]

Compressed sensing

[edit]

In solving an underdetermined system of linear equations, the regularization term for the parameter vector is expressed in terms of the norm (taxicab geometry) of the vector.[13] This approach appears in the signal recovery framework called compressed sensing.

Differences of frequency distributions

[edit]

Taxicab geometry can be used to assess the differences in discrete frequency distributions. For example, in RNA splicing positional distributions of hexamers, which plot the probability of each hexamer appearing at each given nucleotide near a splice site, can be compared with L1-distance. Each position distribution can be represented as a vector where each entry represents the likelihood of the hexamer starting at a certain nucleotide. A large L1-distance between the two vectors indicates a significant difference in the nature of the distributions while a small distance denotes similarly shaped distributions. This is equivalent to measuring the area between the two distribution curves because the area of each segment is the absolute difference between the two curves' likelihoods at that point. When summed together for all segments, it provides the same measure as L1-distance.[14]

See also

[edit]
Comparison of Chebyshev, Euclidean and taxicab distances for the hypotenuse of a 3-4-5 triangle on a chessboard

References

[edit]

Further reading

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
Taxicab geometry, also known as geometry, is a defined on the where the between two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is given by the metric d((x1,y1),(x2,y2))=x1x2+y1y2d((x_1, y_1), (x_2, y_2)) = |x_1 - x_2| + |y_1 - y_2|, representing the shortest path along a rectilinear grid like city streets. This function, part of the broader family of LpL_p norms with p=1p=1, transforms familiar Euclidean shapes: a "circle" of rr becomes a square rotated 45 degrees with vertices at (r,0)(r,0), (r,0)(-r,0), (0,r)(0,r), and (0,r)(0,-r), while straight lines remain the same but shortest paths between points are no longer unique, often consisting of horizontal and vertical segments. The foundations of taxicab geometry trace back to , who introduced the taxicab metric around 1900 as one of several norms in his work on geometric spaces, influencing fields like relativity through his concepts. The name "taxicab geometry" was coined in 1952 by mathematician for an exhibit at the Museum of Science and Industry in , highlighting its intuitive city-block analogy in the accompanying booklet You and Geometry. It gained widespread educational popularity through Eugene F. Krause's 1975 textbook Taxicab Geometry: An Adventure in , which explores its properties through puzzles and proofs accessible to high school and undergraduate students. Key properties distinguish taxicab geometry from , including the fact that the sum of interior angles in any is constantly 4 t-radians, where a t-radian is defined as the subtending an arc of length 1 on the unit taxicab circle, corresponding to the taxicab analog of the Euclidean π\pi radians. Triangles satisfy modified congruence criteria, such as side-side-side (SSS) and hypotenuse-leg (HL) for right triangles, but not always side-angle-side (SAS) due to non-unique paths; equilateral triangles exist with side length ss but are generally not equiangular. Ellipses, defined as sets of points where the sum of distances to two foci is constant, form octagons or other polygons depending on foci positions. Applications of taxicab geometry extend beyond into practical domains, such as optimizing routes in grid-based urban environments for emergency services, where Krause illustrates scenarios like police dispatchers minimizing response times on street grids. In , the metric underpins algorithms for in pixel grids, image processing, and nearest-neighbor searches; it also models fire spread in grid-structured buildings or differences in statistical distributions via the L1L_1 norm. adapted to taxicab geometry, including defined via projections on the unit , enable computations in these contexts, with a right measuring 2 t-radians.

Definition

Metric Axioms

Taxicab geometry, also known as Manhattan geometry, is the real plane R2\mathbb{R}^2 (or more generally Rn\mathbb{R}^n) equipped with the 1\ell_1 metric, defined by the distance function
d((x1,y1),(x2,y2))=x1x2+y1y2.d((x_1, y_1), (x_2, y_2)) = |x_1 - x_2| + |y_1 - y_2|.
This distance measures the total horizontal and vertical displacement between points, analogous to navigating a grid-like city street system.
The 1\ell_1 metric induces the 1\ell_1 norm on vectors in R2\mathbb{R}^2, given by v1=v1+v2\|\mathbf{v}\|_1 = |v_1| + |v_2| for v=(v1,v2)\mathbf{v} = (v_1, v_2), where the distance between points p\mathbf{p} and q\mathbf{q} is pq1\|\mathbf{p} - \mathbf{q}\|_1. This norm satisfies the standard norm axioms: positivity (v10\|\mathbf{v}\|_1 \geq 0, with equality v=0\mathbf{v} = \mathbf{0}), homogeneity (cv1=cv1\|c\mathbf{v}\|_1 = |c| \|\mathbf{v}\|_1 for scalar cc), and the (u+v1u1+v1\|\mathbf{u} + \mathbf{v}\|_1 \leq \|\mathbf{u}\|_1 + \|\mathbf{v}\|_1). To confirm that the 1\ell_1 metric defines a valid , it must satisfy the following axioms for all points P,Q,RR2P, Q, R \in \mathbb{R}^2:
  • Non-negativity and : d(P,Q)0d(P, Q) \geq 0, with d(P,Q)=0d(P, Q) = 0 P=QP = Q.
    Since absolute values are non-negative, their sum d(P,Q)d(P, Q) is non-negative. Equality holds only if both xPxQ=0|x_P - x_Q| = 0 and yPyQ=0|y_P - y_Q| = 0, implying P=QP = Q.
  • Symmetry: d(P,Q)=d(Q,P)d(P, Q) = d(Q, P).
    This follows directly from the symmetry of the function, as ab=ba|a - b| = |b - a| for any real numbers a,ba, b, applied componentwise.
  • Triangle inequality: d(P,R)d(P,Q)+d(Q,R)d(P, R) \leq d(P, Q) + d(Q, R).
    By the subadditivity of the (i.e., acab+bc|a - c| \leq |a - b| + |b - c| for real a,b,ca, b, c), we have
    xPxRxPxQ+xQxR,|x_P - x_R| \leq |x_P - x_Q| + |x_Q - x_R|,
    and similarly for the yy-coordinates. Adding these inequalities yields
    d(P,R)=xPxR+yPyR(xPxQ+xQxR)+(yPyQ+yQyR)=d(P,Q)+d(Q,R).d(P, R) = |x_P - x_R| + |y_P - y_R| \leq (|x_P - x_Q| + |x_Q - x_R|) + (|y_P - y_Q| + |y_Q - y_R|) = d(P, Q) + d(Q, R).
    This completes the verification.
For illustration, consider points (0,0)(0,0) and (1,1)(1,1): the taxicab distance is d((0,0),(1,1))=10+10=2d((0,0), (1,1)) = |1-0| + |1-0| = 2, exceeding the intuitive straight-line (Euclidean) distance of 21.41\sqrt{2} \approx 1.41
Add your contribution
Related Hubs
User Avatar
No comments yet.