Loading [MathJax]/extensions/tex2jax.js

标签: 图论

2 篇文章

图的存储
1. 邻接矩阵 思想: 利用二维数组 g[N][N] 存储所有的点到点的权值。 其中 N 为点的数量,g[i][j] 表示点 i 到点 j 的权值。 时间复杂度:O(n2)\mathcal{O}(n^2) 空间复杂度:O(n2)\mathcal{O}(n^2) 应用: 只在点数不多的稠密图使用。 大部分情况下点…

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-content/themes/argon/functions.php on line 352

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-content/themes/argon/functions.php on line 352