Графы и сети
Введено
12:39
GAC024 Дискретная математика
Повторяющийся элемент множества считается один раз, двоичный перенос может превышать фиксированную разрядность, а маршрут с наименьшим числом ребер может иметь наибольший вес. Дискретная…
Озвучивание на английском · переключаемые субтитры на английском и китайском языках
В этом уроке
| English | Значение |
|---|---|
| graph/ɡræf/ | граф |
| vertices/ˈvɜːtɪsiːz/ | вершины |
| edges/ˈedʒɪz/ | рёбра |
| degree/dɪˈɡriː/ | степень |
| path/pæθ/ | путь |
| cycle/ˈsaɪkl/ | цикл |
| connected/kəˈnektɪd/ | связный |
| tree/triː/ | дерево |
| weighted graph/ˈweɪtɪd ɡræf/ | взвешенный граф |
| shortest path/ˈʃɔːtɪst pæθ/ | кратчайший путь |
A connection model needs its assumptions
- A graph 图 has vertices 顶点 and edges 边. Decide what they represent and whether the connections are directed, weighted or undirected.
- The worksheet uses finite simple undirected graphs without loops or repeated edges. Drawing position does not change their connections, but an arrow or edge weight can change the mathematical model.

Count connections consistently
- Degree 度 counts incident edges in a simple undirected graph. The total degree is twice the number of edges, so it must be even.
- A path 路径 follows connections; a cycle 环 returns to its start without repeating other vertices. A graph is connected 连通 when each vertex can be reached from every other.
В простом неориентированном графе без петель четыре ребра соединены с вершиной. Какова её степень?
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
Её степень равна 4, количеству инцидентных рёбер при указанной конвенции графа.
A tree needs two properties
- A tree 树 is connected and has no cycles. A finite tree with n vertices has n minus 1 edges.
- Having n minus 1 edges alone does not prove a tree: a triangle plus a separate two-vertex component has five vertices and four edges but is disconnected and cyclic.
В дереве 4 вершины. Сколько в нём рёбер?
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
Конечное дерево с четырьмя вершинами имеет n − 1 = 3 ребра. Этот подсчет зависит от того, что граф действительно является связным и ациклическим.
В связном неориентированном графе со строго положительными стоимостями рёбер, почему минимальный по стоимости связный подграф, охватывающий все вершины, не содержит циклов?
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Удаление любого ребра цикла сохраняет связность и снижает общую стоимость, поскольку его вес строго положителен. Следовательно, подграф с циклами не может быть минимальным при данных допущениях.
Positive-cost connecting roads. For a connected network with strictly positive road costs, removing a cycle edge leaves connectivity and lowers cost. A minimum-cost connecting subgraph is therefore a tree. To find a minimum spanning tree, choose edges that connect all vertices without a cycle; blindly choosing the cheapest n minus 1 edges can leave separate components.
A shortest route is not a spanning tree
- A weighted graph 带权图 attaches a specified value to each edge. A shortest path 最短路径 minimises route weight between the given endpoints.
- A minimum spanning tree instead connects every vertex at minimum total included weight. A shortest route can have more edges than a direct expensive route; sum the weights rather than count the edges.
Соотнесите каждую ситуацию с тем, чем должны быть её вершины и рёбра.
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
Решение того, что представляют вершины, — это этап моделирования, и именно здесь ставятся баллы.
A closed edge changes feasibility. Sheet 4.5 finds a route of weight 7, then closes an edge and checks a replacement of weight 9. Do not reuse the old total for a path that no longer exists.
Два рисунка, которые выглядят по-разному, обязательно представляют разные графы.
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Различные layouts могут иметь одинаковую помеченную матрицу смежности. Сравнивайте также направления и веса, если они являются частью заданного графа.
Compare all structure relevant to the question: vertex correspondence, adjacency, directions and weights where specified. Equal-looking pictures need not represent the same graph; different layouts can represent the same labelled connections.