What is the shortest path from node A to node F?

BFS DFS

Quiz
•
Computers
•
University
•
Hard
Dhilip Kumar V TTS2750
Used 152+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A -> B -> D -> F
A -> C -> B -> E -> F
A -> F
A -> C -> E -> F
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Traversal of a graph is different from tree because
DFS of a graph uses stack, but inorrder traversal of a tree is recursive
There can be a loop in graph so we must maintain a visited flag for every vertex
BFS of a graph uses queue, but a time efficient BFS of a tree is recursive.
All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The Breadth First Search algorithm has been implemented using the queue data structure. One possible order of visiting the nodes of the following graph is
MNOPQR
NQMPOR
QMNPRO
QMNPOR
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following graph,
Among the following sequences:
(I) a b e g h f
(II) a b f e h g
(III) a b f h g e
(IV) a f g h b e
Which are depth first traversals of the above graph?
I, II and IV only
I and IV only
II, III and IV only
I, III and IV only
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The data structure used for Depth First Algorithm is
STACK
QUEUE
BOTH STACK & QUEUE
NONE OF THESE
Similar Resources on Quizizz
10 questions
SSK20193 KUIZ DUA

Quiz
•
12th Grade - University
10 questions
UTS Sistem Operasi

Quiz
•
University
10 questions
DSA(UNIT 1) Test 1

Quiz
•
University
10 questions
Gestão de TI - Estratégias Comp Genéricas

Quiz
•
University
10 questions
SQL Queries

Quiz
•
University
10 questions
Structure Data Review

Quiz
•
University - Professi...
10 questions
DS Quiz1

Quiz
•
University
6 questions
OS Day 2 Part 2

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade