liveBook · Manning

Dimension

As explained in Advanced Algorithms and Data Structures

A dimension is an independent coordinate axis or degree of freedom needed to specify a point in a space.

A dimension is an independent coordinate axis or degree of freedom needed to specify a point. A one-dimensional value uses one coordinate; a point in ℝ² uses two. More generally, a k-dimensional point can be represented as a k-tuple of values. section 8.4.2 section 10.3

Dimension affects how data can be organized. Binary search divides a one-dimensional range into halves, but a plane has no single obvious left-right split. Partitioning only by x-coordinate ignores y-coordinate information and can separate nearby points while grouping less-similar ones. section 8.4.2

In multidimensional indexes, dimensionality determines both representation and operations:

  • A k-d tree cycles through coordinate dimensions as tree levels determine splitting coordinates. section 9.3.4
  • Deleting from a k-d tree must preserve coordinate-based splitting invariants; replacing a node as in a binary search tree can violate them. section 9.3.4
  • An SS-tree stores k-dimensional points at leaves and records dimensionality k alongside node capacity parameters. section 10.3

A misleading two-dimensional split

Suppose a point R is used to split a Cartesian plane with a vertical line. Points are assigned by x-coordinate, even though pairs such as U and S may be closer than pairs placed in the same partition. The y-coordinate is essential to represent their spatial relationship. section 8.4.2

Figure 8.8 Points in a Cartesian plane. Lines through the origin and each point are shown. A few possible partitionings into left and right of P are shown. (A) Splitting the plane with a vertical line passing through P. (B) Drawing a line passing through P and the origin will define two semi-spaces on the two sides of the line. (C) Using the same line as B but partitioning points whose projection on that line is left or right of P.

Compare vertical splitting, line-based half-spaces, and projection-based partitioning in a two-dimensional plane. section 8.4.2

How Advanced Algorithms and Data Structures covers it

How deep it goes
Explains coordinate representation and partitioning consequences, then applies dimensionality to k-d tree deletion and SS-tree structures.
Examples
Uses ℝ², complex numbers, Cartesian-plane partitions, k-d tree points, and SS-tree k-dimensional tuples.
What it assumes
Assumes familiarity with real numbers, binary search, and coordinate spaces while treating higher-dimensional representation concretely.
What you can do after
Evaluate how ignoring coordinates affects spatial partitioning and represent dimensionality in multidimensional index structures.
How it connects
Connects dimension with binary search, Cartesian space, k-d trees, similarity search trees, and R-trees.

Also explained in

Compare how 8 books explain dimension →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Advanced Algorithms and Data Structures. The section links point to the parts of the book it draws on.