# 度量维数（图论）

在图论中，连通图的**度量维数**是指这样一个顶点集合的最小规模：图中每个顶点都能由它到该集合的最短路径距离向量唯一确定。这一概念由彼得·斯莱特（Peter Slater）于1975年、弗兰克·哈拉里（Frank Harary）与罗伯特·A·梅尔特（Robert A. Melter）于1976年分别独立提出，也被称为定位数、度量基问题或哈拉里问题。<sup>[1](https://epubs.siam.org/doi/pdf/10.1137/16M1057383?download=true)</sup><sup> • </sup><sup>[2](https://arxiv.org/abs/1107.2256)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 若任意两个不同顶点到集合 \( R \subseteq V \) 的距离向量都不相同，则称 \( R \) 为分辨集；度量维数 \( \beta(G) \) 是这种集合的最小规模，这样的集合称为度量基<sup>[3](https://www.scholarpedia.org/article/Metric_Dimension)</sup> |
| 平凡界 | 对 \( n \) 个顶点的图，有 \( 1 \le \beta(G) \le n-1 \)；下界由路径达到，上界由完全图达到<sup>[4](https://www.sciencedirect.com/science/article/pii/S0304397515009159)</sup> |
| 小取值 | 一个图的度量维数为1当且仅当它是路径；环的度量维数为2；二维网格图的度量维数也是2<sup>[5](https://sites.cs.ucsb.edu/~suri/cs231/Rlist/landmark.pdf)</sup><sup> • </sup><sup>[6](https://www.sciencedirect.com/science/article/abs/pii/S0020019016300801)</sup> |
| 复杂性 | 计算 \( \beta(G) \) 是NP难的；判定版本在一般图、最大度为6的平面图、甚至区间图上都是NP完全的，而树和外平面图存在多项式时间算法<sup>[2](https://arxiv.org/abs/1107.2256)</sup><sup> • </sup><sup>[1](https://epubs.siam.org/doi/pdf/10.1137/16M1057383?download=true)</sup> |
| 近似 | 对任意图存在 \( 2\log n \) 近似算法，但除非 P = NP，否则不存在 \( o(\ln n) \) 近似<sup>[2](https://arxiv.org/abs/1107.2256)</sup> |
| 应用 | 机器人导航与定位、声呐与罗兰站布设、网络中的源定位、化学、组合优化以及地理路由协议<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC10869853/)</sup><sup> • </sup><sup>[5](https://sites.cs.ucsb.edu/~suri/cs231/Rlist/landmark.pdf)</sup> |

## 定义

设 \( G = (V, E) \) 为有限、简单、连通图。两顶点之间的距离 \( d(u,v) \) 是它们之间最短路径的长度。对于顶点的有序子集 \( R = \{r_1, \dots, r_k\} \)，每个顶点 \( u \) 都有一个距离向量

\[ \Phi_R(u) = (d(u, r_1), \dots, d(u, r_k)). \]

若对任意两个不同顶点 \( u \) 和 \( v \) 都有 \( \Phi_R(u) \ne \Phi_R(v) \)，则称集合 \( R \) 为分辨集；此时称每个 \( r \in R \) 分辨或区分了 \( u \) 与 \( v \)。度量维数 \( \beta(G) \) 是分辨集的最小基数，达到该规模的分辨集称为度量基、基集或参考集。<sup>[3](https://www.scholarpedia.org/article/Metric_Dimension)</sup><sup> • </sup><sup>[4](https://www.sciencedirect.com/science/article/pii/S0304397515009159)</sup>

整个顶点集 \( V \) 总是分辨集，对每个顶点 \( v \)，\( V \setminus \{v\} \) 也是分辨集，由此得到平凡界 \( 1 \le \beta(G) \le n-1 \)。<sup>[4](https://www.sciencedirect.com/science/article/pii/S0304397515009159)</sup> 由于只用到最短路径距离，该定义自然推广到带权边、多重边或自环的图。<sup>[3](https://www.scholarpedia.org/article/Metric_Dimension)</sup>

这一想法与全球定位系统所使用的三边测量法类似：在平面上，当一组点包含三个仿射无关的点时，这组点就能分辨整个空间，因为到这些点的距离将每个位置归入唯一的等价类。在图上也一样，到分辨集各顶点的距离起着同样的作用，而极小分辨集将图的顶点嵌入为 \( \mathbb{R}^{\beta(G)} \) 中互不相同的点。<sup>[3](https://www.scholarpedia.org/article/Metric_Dimension)</sup>

## 起源

斯莱特于1975年在网络中最少布设声呐探测器的背景下引入了分辨集，使得每个位置都能由测得的距离确定；哈拉里与梅尔特于1976年在《组合学艺术》（*Ars Combinatoria*）上发表了独立的表述。<sup>[1](https://epubs.siam.org/doi/pdf/10.1137/16M1057383?download=true)</sup><sup> • </sup><sup>[8](https://combinatorialpress.com/ars/vol2/)</sup> 斯莱特最初的术语是图的定位数。<sup>[9](https://www.tandfonline.com/doi/full/10.1016/j.akcej.2019.12.021)</sup> 同一个数学问题在1996年再次出现：萨米尔·库勒（Samir Khuller）、巴拉吉·拉加瓦查里（Balaji Raghavachari）和阿兹里尔·罗森菲尔德（Azriel Rosenfeld）研究了图上的机器人导航——能感知自己到一组带标记地标的图距离的机器人，当且仅当这些地标构成分辨集时才能精确确定自己的位置，而地标的最少数量就是度量维数。<sup>[5](https://sites.cs.ucsb.edu/~suri/cs231/Rlist/landmark.pdf)</sup>

## 基本取值与界

若干图族有精确取值。路径的度量维数为1，因为到单个端点的距离就沿路径给出了顶点的顺序。环 \( C_n \) 的度量维数为2，因为一个地标无法区分两侧等距的两个顶点，而两个相邻地标能分辨每个顶点。完全图 \( K_n \) 的度量维数为 \( n-1 \)，因为对任何排除了其中某个顶点的地标集，每一对非地标顶点到该集合的距离都完全相同。<sup>[5](https://sites.cs.ucsb.edu/~suri/cs231/Rlist/landmark.pdf)</sup><sup> • </sup><sup>[4](https://www.sciencedirect.com/science/article/pii/S0304397515009159)</sup> 二维网格图的度量维数也是2。<sup>[6](https://www.sciencedirect.com/science/article/abs/pii/S0020019016300801)</sup>

**树。** 斯莱特确定了树的度量维数，标准公式指出：对每个不是路径的树 \( T \)，

\[ \beta(T) = \sum_{v \in V(T)} \max\{\ell_v - 1,\ 0\}, \]

其中 \( \ell_v \) 是 \( T \setminus v \) 的连通分支中为路径（可以是单个顶点）的个数。<sup>[10](https://users.monash.edu/~davidwo/papers/MetricDimension-SJDM07.pdf)</sup> 库勒、拉加瓦查里和罗森菲尔德给出了计算树的度量维数的线性时间算法，并刻画了度量维数为1和2的图。<sup>[2](https://arxiv.org/abs/1107.2256)</sup>

**随机图。** 对于二项随机图 \( G(n,p) \)，贝拉·博洛巴什（Béla Bollobás）、迪特·米切（Dieter Mitsche）和帕维乌·普拉瓦特（Paweł Prałat）在广泛的边概率范围 \( p = p(n) \) 内研究了 \( \beta(G(n,p)) \)，确立了该模型中它的渐近行为。<sup>[11](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v20i4p1)</sup>

## 计算复杂性

计算度量维数一般是计算困难的。加里（Garey）与约翰逊（Johnson）于1979年将判定版本列为NP完全问题，后来哈通（Hartung）与尼希特莱因（Nichterlein）于2013年在更强的意义上证明了该问题是NP难的。<sup>[12](https://doi.org/10.1007/s13278-026-01595-3)</sup> 判定问题——即问 \( \beta(G) \) 是否低于给定整数——通过从3-SAT和三维匹配归约，是NP完全的。<sup>[3](https://www.scholarpedia.org/article/Metric_Dimension)</sup>

**限制图类上的困难性。** 何塞普·迪亚兹（Josep Diaz）、奥利·波托宁（Olli Pottonen）、玛丽亚·塞尔纳（Maria Serna）和埃里克·扬·范·列文（Erik Jan van Leeuwen）于2011年证明，度量维数在最大度为6的平面图上仍是NP完全的，从而解决了自加里与约翰逊的书以来悬而未决的问题，并给出了外平面图的第一个多项式时间算法。<sup>[2](https://arxiv.org/abs/1107.2256)</sup> 富科（Foucaud）后来证明即使在区间图上也是NP完全的。<sup>[1](https://epubs.siam.org/doi/pdf/10.1137/16M1057383?download=true)</sup> 对于有向图，该问题即使在最大度为6、最大距离为4的平面无三角形DAG上也是NP完全的。<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/S002200002600022X)</sup>

**可处理情形与参数化。** 除树和外平面图外，雷米·贝尔蒙特（Rémy Belmonte）、费多尔·V·福明（Fedor V. Fomin）、彼得·A·戈洛瓦奇（Petr A. Golovach）和M. S. 拉马努金（M. S. Ramanujan）证明了以度量维数本身为参数时该问题是固定参数可处理的，并且这一结果可推广到所有有界树长的图——该类图包含弦图、无AT图（AT-free graphs）和置换图；他们还给出了以模宽为参数的FPT算法。<sup>[1](https://epubs.siam.org/doi/pdf/10.1137/16M1057383?download=true)</sup>

**近似。** 库勒及其同事给出了对任意图的 \( 2\log n \) 近似算法。在不可近似性方面，贝尔利奥娃（Beerliova）及其同事证明了除非 P = NP，一般图的度量维数不能在 \( o(\ln n) \) 内近似，而豪普特曼（Hauptmann）及其同事在温和的复杂性假设下将此加强为 \( (1-\epsilon)\log n \)，并证明了该问题对有界度图是APX难的。<sup>[2](https://arxiv.org/abs/1107.2256)</sup>

## 变体

基本参数衍生出一族相关不变量，包括边度量维数、局部度量维数、强度量维数、分辨划分以及度量定位支配集。<sup>[14](https://www.nature.com/articles/s41598-025-24939-z)</sup>

**容错。** 卡门·埃尔南多（Carmen Hernando）、梅尔塞·莫拉（Mercè Mora）、彼得·J·斯莱特（Peter J. Slater）和大卫·R·伍德（David R. Wood）于2008年引入了容错度量维数 \( \mathrm{ftdim}(G) \)：最小的分辨集 \( S \) 的规模，使得对每个 \( s \in S \)，\( S \setminus \{s\} \) 仍是分辨集，从而任何单个地标失效都不会丧失唯一识别。他们证明了 \( \mathrm{ftdim}(G) \le \dim(G)(1 + 2 \cdot 5^{\dim(G)-1}) \)。克诺尔（Knor）及其同事后来给出了满足 \( \mathrm{ftdim}(G) = \dim(G) + 2^{\dim(G)-1} \) 的图，而杰西·杰内森（Jesse Geneson）与蔡申复（Shen-Fu Tsai）将上界改进为 \( \mathrm{ftdim}(G) \le \dim(G)(1 + 3^{\dim(G)-1}) \)，表明关于 \( \dim(G) \) 的指数增长率以3为底。<sup>[15](https://arxiv.org/abs/2502.02731)</sup>

**k-度量维数。** 若每一对顶点都至少被 \( S \) 中的 \( k \) 个顶点区分，则称集合 \( S \) 为 \( k \)-度量生成集，从而识别在失去至多 \( k-1 \) 个地标后仍然成立。伊斯梅尔·G·耶罗（Ismael G. Yero）、亚历杭德罗·埃斯特拉达-莫雷诺（Alejandro Estrada-Moreno）和胡安·A·罗德里格斯-贝拉斯克斯（Juan A. Rodríguez-Velázquez）证明了计算 \( k \)-度量维数是NP完全的，尽管在树上可以在线性时间内求解。<sup>[16](https://arxiv.org/abs/1401.0342)</sup>

**加权与分数版本。** 分数度量维数是局部分数度量维数的加权推广，它给地标赋权，使达到可分辨性所需的总权重最小；已有研究给出了它的界及其在网格相关网络中的应用。<sup>[17](https://www.mdpi.com/2227-7390/9/12/1383)</sup> 同时度量维数要求一个地标集能分辨定义在共同标号顶点集上的一个图族中的每个图，这一表述源于结构随时间变化的网络；即使对树族，求它也是NP难的。<sup>[18](https://www.sciencedirect.com/science/article/pii/S0166218X1500298X)</sup>

## 应用

**机器人导航。** 在库勒、拉加瓦查里和罗森菲尔德的地标模型中，在图的节点间移动的机器人感知自己到固定地标的距离；最小度量基就是使机器人能在每个顶点确定自己位置的最少地标集。<sup>[5](https://sites.cs.ucsb.edu/~suri/cs231/Rlist/landmark.pdf)</sup> 在容错表述中，要求每个位置即使在一个地标失效时仍保持唯一的距离向量，这模拟了仓储和自主导航环境中的传感器或信标故障。<sup>[19](https://www.mdpi.com/2227-7390/13/22/3678)</sup>

**网络与化学。** 有文献记载的应用领域包括传播过程中的源定位、网络模体的检测、生物序列数据的嵌入、电信网络、化学与药物设计、组合优化、社会学、确定DNA在真实空间中的顺序以及地理路由协议。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC10869853/)</sup><sup> • </sup><sup>[20](https://arxiv.org/abs/2104.07201)</sup> 在化学结构中，原子或分子被视为节点、化学键被视为连边，因此基于距离的维数可支持化合物比较和诊断试剂盒开发等任务。<sup>[17](https://www.mdpi.com/2227-7390/9/12/1383)</sup>

理查德·C·蒂尔奎斯特（Richard C. Tillquist）、拉斐尔·M·弗龙吉洛（Rafael M. Frongillo）和曼努埃尔·E·利亚德塞尔（Manuel E. Lladser）于2023年在《SIAM评论》（*SIAM Review*）上发表的综述汇集了核心结果、一般图的近似方法以及确定性和随机图族的渐近行为，反映了该领域持续的研究活力。<sup>[20](https://arxiv.org/abs/2104.07201)</sup>

## References

1. [R. Belmonte, F. V. Fomin, P. A. Golovach, M. S. Ramanujan. Metric Dimension of Bounded Tree-length Graphs. SIAM Journal on Discrete Mathematics.](https://epubs.siam.org/doi/pdf/10.1137/16M1057383?download=true)
2. [J. Diaz, O. Pottonen, M. Serna, E. J. van Leeuwen. Complexity of Metric Dimension on Planar Graphs. arXiv:1107.2256.](https://arxiv.org/abs/1107.2256)
3. [Metric Dimension. Scholarpedia.](https://www.scholarpedia.org/article/Metric_Dimension)
4. [Extending the metric dimension to graphs with missing edges. Theoretical Computer Science (ScienceDirect).](https://www.sciencedirect.com/science/article/pii/S0304397515009159)
5. [S. Khuller, B. Raghavachari, A. Rosenfeld. Landmarks in Graphs (1996).](https://sites.cs.ucsb.edu/~suri/cs231/Rlist/landmark.pdf)
6. [The metric dimension for resolving several objects. Information Processing Letters (ScienceDirect).](https://www.sciencedirect.com/science/article/abs/pii/S0020019016300801)
7. [Computing dominant metric dimensions of certain connected networks. PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC10869853/)
8. [F. Harary, R. A. Melter. On the metric dimension of a graph. Ars Combinatoria 2 (1976), 191–195. Combinatorial Press, Volume II listing.](https://combinatorialpress.com/ars/vol2/)
9. [New resolvability parameters of graphs. Art Discrete Appl. Math.](https://www.tandfonline.com/doi/full/10.1016/j.akcej.2019.12.021)
10. [J. Cáceres et al. Metric dimension of Cartesian products of graphs. SIAM J. Discrete Math.](https://users.monash.edu/~davidwo/papers/MetricDimension-SJDM07.pdf)
11. [B. Bollobás, D. Mitsche, P. Prałat. Metric Dimension for Random Graphs. Electronic Journal of Combinatorics 20(4) (2013), #P1.](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v20i4p1)
12. [Collaboration: people, papers, average graphs, Durfee squares and metric dimension. Social Network Analysis and Mining (Springer).](https://doi.org/10.1007/s13278-026-01595-3)
13. [Algorithms and hardness for Metric Dimension on digraphs. Journal of Computer and System Sciences (ScienceDirect).](https://www.sciencedirect.com/science/article/abs/pii/S002200002600022X)
14. [Metric, edge-metric, mixed-metric, and fault-tolerant metric dimensions of geometric networks. Scientific Reports.](https://www.nature.com/articles/s41598-025-24939-z)
15. [J. Geneson, S.-F. Tsai. Fault tolerance for metric dimension and its variants. arXiv:2502.02731.](https://arxiv.org/abs/2502.02731)
16. [I. G. Yero, A. Estrada-Moreno, J. A. Rodríguez-Velázquez. On the complexity of computing the k-metric dimension of graphs. arXiv:1401.0342.](https://arxiv.org/abs/1401.0342)
17. [A. H. Alkhaldi, M. K. Aslam, M. Javaid, A. M. Alanazi. Bounds of Fractional Metric Dimension and Applications with Grid-Related Networks. Mathematics 9(12) (2021), 1383.](https://www.mdpi.com/2227-7390/9/12/1383)
18. [The simultaneous metric dimension of graph families. Discrete Applied Mathematics (ScienceDirect).](https://www.sciencedirect.com/science/article/pii/S0166218X1500298X)
19. [Fault-Tolerant Metric Dimension and Applications: Zero-Divisor Graph of Upper Triangular Matrices. Mathematics 13(22) (2025), 3678.](https://www.mdpi.com/2227-7390/13/22/3678)
20. [R. C. Tillquist, R. M. Frongillo, M. E. Lladser. Getting the Lay of the Land in Discrete Space: A Survey of Metric Dimension and Its Applications. SIAM Review 65(4) (2023), 919–962.](https://arxiv.org/abs/2104.07201)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Graph theory › Graph invariants and parameters › Distance-based invariants

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/metric-dimension-graph-theory

English original: https://www.edgepedia.org/metric-dimension-graph-theory
