freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-107-minimal-network.md

26 lines
923 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f3d91000cf542c50feea
title: 问题107最小网络
challengeType: 5
videoUrl: ''
---
# --description--
以下无向网络由七个顶点和十二个边组成总权重为243。
相同的网络可以由下面的矩阵表示。 ABCDEFG A-161221 --- B16--1720-- C12--28-31- D211728-181923 E-20-18--11 F-3119--27 G --- 231127-但是有可能通过删除一些边缘来优化网络并仍然确保网络上的所有点保持连接。实现最大节省的网络如下所示。它的权重为93比原始网络节省了243 - 93 = 150。
使用network.txt右键单击并“保存链接/目标为...”一个6K文本文件包含一个具有四十个顶点的网络并以矩阵形式给出找到通过删除冗余边缘可以实现的最大节省确保网络保持连接。
# --hints--
`euler107()`应该返回259679。
```js
assert.strictEqual(euler107(), 259679);
```
# --solutions--