Graph Algorithms Three - Introduction to Algorithms - Lecture Slides, Slides of Computer Science

These are the Lecture Slides of Introduction to Algorithms which includes Expensive Operations, Sort Edges, Running Time, Upshot, Union, Makeset, Disjoint Set, Disjoint Set Union, Naïve Implementation etc. Key important points are: Graph Algorithms Three, Depth First Search, Strategy, Exploring a Graph, Possible, Unexplored Edges, Vertex, Backtrack, Discovered, Code

Typology: Slides

2012/2013

Uploaded on 03/23/2013

dhruv
dhruv 🇮🇳

4.3

(12)

194 documents

1 / 35

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Algorithms
Graph Algorithms
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23

Partial preview of the text

Download Graph Algorithms Three - Introduction to Algorithms - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Algorithms

Graph Algorithms

Review: Depth-First Search

● Depth-first search is another strategy for

exploring a graph

■ Explore “deeper” in the graph whenever possible

■ Edges are explored out of the most recently

discovered vertex v that still has unexplored edges

■ When all of v ’s edges have been explored,

backtrack to the vertex from which v was

discovered

source vertex

source vertex d f

source vertex d f

source vertex d f

source vertex d f

source vertex d f

source vertex d f

What is the structure of the yellow vertices? What do they represent?

source vertex d f

source vertex d f

source vertex d f

source vertex d f

source vertex d f