Which traversal method uses a stack data structure to keep track of unvisited nodes?

CC104 2A

Quiz
•
Other
•
University
•
Hard
Analyn Edañol
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Breadth First Search
Dijkstra's Algorithm
Kruskal's Algorithm
Depth First Search
2.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Which type of graph traversal would you use if you wanted to visit all nodes at the current depth level before moving to the next depth level?
Breadth First Search
Prim's Algorithm
Bellman-Ford Algorithm
Depth First Search
3.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
In graph terminology, what does a 'leaf' node refer to?
A node with only one adjacent node
A node with no outgoing edges
A node with no incoming edges
A node with no adjacent nodes
4.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Which graph representation is more space-efficient for a sparse graph?
Adjacency List
Incidence Matrix
Adjacency Matrix
Edge List
5.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
In an adjacency matrix representation of a graph, what value is used to indicate the absence of an edge between vertices Vi and Vj?
1
0
-1
None
6.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
In a graph G, if there is a path between every pair of vertices, what type of graph is G?
Directed graph
Disconnected graph
Bipartite graph
Complete graph
7.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What is the primary difference between a directed graph and an undirected graph?
Directed graphs allow edges to point in one direction; undirected graphs do not.
Directed graphs are sparse; undirected graphs are dense.
Directed graphs have weights on edges; undirected graphs do not.
Directed graphs have cycles; undirected graphs do not.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
ECG Review (Level 1)(AEMT)

Quiz
•
University
10 questions
Quiz on Wireless Cellular Communication

Quiz
•
University
15 questions
The Heart

Quiz
•
University
10 questions
DSA Week 11

Quiz
•
University
10 questions
Data Visualization Idioms Quiz

Quiz
•
University
14 questions
In-Lab5

Quiz
•
University
10 questions
Technology in Education

Quiz
•
University - Professi...
9 questions
Yeat

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade