Depth-First Search and Related Algorithms

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/14

flashcard set

Earn XP

Description and Tags

Flashcards covering important concepts related to Depth-First Search, Breadth-First Search, and Dijkstra's Algorithm.

Last updated 4:12 PM on 3/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

15 Terms

1
New cards

Depth First Search (DFS)

A recursive algorithm for searching all vertices of a graph or tree data structure by exploring as far as possible along each branch before backtracking.

2
New cards

Traversal

The process of visiting all the nodes in a graph.

3
New cards

Time Complexity of DFS

O(|V| + |E|), where |V| is the number of vertices and |E| is the number of edges.

4
New cards

Space Complexity of DFS

O(|V|) in the worst case, for storing the stack of vertices and visited vertices.

5
New cards

Backtracking

The process of moving backwards in the search path when there are no more nodes to explore in the current path.

6
New cards

Visited List in DFS

A list that marks vertices as visited to avoid cycles during traversal.

7
New cards

Topological Sort

An ordering of vertices in a directed acyclic graph (DAG) such that for every directed edge u -> v, vertex u comes before v.

8
New cards

Spanning Tree

A tree that includes all vertices of the graph and is obtained through processes like DFS.

9
New cards

Applications of DFS

Used for finding paths, detecting cycles, and performing topological sorting in graphs.

10
New cards

Breadth First Search (BFS)

An algorithm for searching tree or graph data structures that explores all nodes at the present depth before moving on to the next depth level.

11
New cards

Dijkstra's Algorithm

An algorithm for finding the shortest path between vertices in a weighted graph.

12
New cards

Greedy Algorithm

An algorithm that makes the locally optimal choice at each stage with the hope of finding the global optimum.

13
New cards

Infinity in Graph Algorithms

Represents a distance value that is extremely large, indicating a vertex has not been visited yet or is unreachable.

14
New cards

Queue in BFS

A data structure used to keep track of the next nodes to visit in breadth-first search.

15
New cards

Graph Cycle

A path in a graph where the start and end vertices are the same and consists of at least one edge.

Explore top notes

Explore top flashcards

flashcards
Bio Chapter 1 Test
93
Updated 572d ago
0.0(0)
flashcards
A&P Chapter 12.
101
Updated 842d ago
0.0(0)
flashcards
Español Dos Study Guide
22
Updated 1058d ago
0.0(0)
flashcards
PSY 3113 Chapter 2
45
Updated 903d ago
0.0(0)
flashcards
Python 221 Terms
63
Updated 857d ago
0.0(0)
flashcards
Vocabulary & Spelling 2.3
20
Updated 484d ago
0.0(0)
flashcards
Bio Chapter 1 Test
93
Updated 572d ago
0.0(0)
flashcards
A&P Chapter 12.
101
Updated 842d ago
0.0(0)
flashcards
Español Dos Study Guide
22
Updated 1058d ago
0.0(0)
flashcards
PSY 3113 Chapter 2
45
Updated 903d ago
0.0(0)
flashcards
Python 221 Terms
63
Updated 857d ago
0.0(0)
flashcards
Vocabulary & Spelling 2.3
20
Updated 484d ago
0.0(0)