GO-V.ORG
As seen in

Distance matrix

In mathematics, computer science and especially graph theory, a distance matrix is a square matrix (two-dimensional array) containing the distances, taken pairwise, between the elements of a set.[src] Depending upon the application involved, the "distance" being used to define this matrix may or may not be a metric.[src] If there are elements, this matrix will have size .[src] In graph-theoretic applications, the elements are usually referred to as points, nodes or vertices.[src]

In mathematics, computer science and especially graph theory, a distance matrix is a square matrix (two-dimensional array) containing the distances, taken pairwise, between the elements of a set.[src] Depending upon the application involved, the "distance" being used to define this matrix may or may not be a metric.[src] If there are elements, this matrix will have size .[src] In graph-theoretic applications, the elements are usually referred to as points, nodes or vertices.[src] c_{ij} = \min_{k=1}^n \{a_{ik} + b_{kj}\}.[src] Note that the off-diagonal elements that are not connected directly will need to be set to infinity or a suitable large value for the min-plus operations to work correctly.[src] A zero in these locations will be incorrectly interpreted as an edge with no distance, cost, etc.[src] If is an matrix containing the edge weights of a graph, then (using this distance product) gives the distances between vertices using paths of length at most edges, and so is the distance matrix of the graph when the step count bound is set to k.[src] If there are no loops of negative weight, will give the true distance matrix, with no bound, because removing repeated vertices from a path cannot lower its weight.[src] On the other hand, if i and j are on a negative-weight loop, will decrease without bound as k increases.[src] An arbitrary graph on vertices can be modeled as a weighted complete graph on vertices by assigning a weight of one to each edge of the complete graph that corresponds to an edge of and infinity to all other edges.[src] for this complete graph is the adjacency matrix of .[src] The distance matrix of can be computed from as above; by contrast, if normal matrix multiplication is used, and unlinked vertices are represented with 0, would instead encode the number of paths between any two vertices of length exactly .[src] k = number of nearest neighbors selected n = size of the training set d = number of dimensions being used for the data This classification focused model predicts the label of the target based on the distance matrix between the target and each of the training samples to determine the K-number of samples that are the closest/nearest to the target.[src] x_i(t+1)=x_{i}(t)- step_{vol} rand(0,1)\frac{x_{i}(t) - B(t)}{distance(x_{i}(t),B(t))}, Eq.[src] B: x_i(t+1)=x_{i}(t)+step_{vol} rand(0,1)\frac{x_{i}(t) - B(t)}{distance(x_{i}(t),B(t))}, Stepvol defines the size of the maximum volume displacement preformed with the distance matrix, specifically using a Euclidean distance matrix.[src]

20 sentences · 20 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Distance matrix." encyclopegia.org, 2026, https://encyclopegia.org/wiki/distance-matrix. Accessed 06 December 2026.

Chicago

"Distance matrix." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/distance-matrix.

APA

encyclopegia.org. (2026). Distance matrix. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/distance-matrix

Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

diode matrix

stub · references available

identity matrix

stub · references available

adjugate matrix

stub · references available

Administrative distance

stub · references available

matrix mechanics

stub · references available

Hilbert matrix

stub · references available

matrix

stub · references available

product-market growth matrix

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1355152212 · 0.5 · snapshot enwiki-001355152212

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.