Discrete Math II - 11.4.1 Spanning Trees - Depth-First Search

preview_player
Показать описание
We continue our study of trees by examining spanning trees. Spanning trees are subgraphs of a graph that contain all vertices of the original graph. The resulting subgraph is a tree, so the graph is connected and contains no cycles.

In our first methodology, we will use a depth-first search. That means that we will begin creating our spanning tree by choosing a specific vertex starting point, then follow that path until we can no longer reach any unvisited vertices. We will then backtrack through the vertices to visit any remaining unvisited vertices.

Video Chapters:
Intro 0:00
What is a Spanning Tree 0:11
Depth-First Search/Backtracking Method 1:15
Using a Stack 4:00
Practice 6:42
Up Next 8:27

Рекомендации по теме
Комментарии
Автор

you missed vertex 'j' in the practice question.

arunays
Автор

Well explained video thank you very much!

magnusfjeldstad