
Advanced DataStructures

Quiz
•
Computers
•
University
•
Hard
Rajalakshmi S
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the primary difference between an adjacency matrix and an adjacency list?
Adjacency matrix is space-efficient for sparse graphs
Adjacency list is faster for checking if two nodes are connected
Adjacency matrix requires O(V^2) space, while adjacency list requires O(|V|+|E|) space
Adjacency list is slower for graph traversal
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What type of graph is required to perform a topological sort?
Directed Cyclic Graph
Undirected Graph
Directed Acyclic Graph
Weighted Graph
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In topological Sort, which vertex is chosen first?
A vertex with highest indegree
A vertex with negative values
Any vertex
A vertex with zero indegree
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the time complexity of Topological sort in a graph with V vertex and E edges
O(V^2)
O( |V| + |E| )
O( V log V)
O( E^2)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Dijkstra's Algorithm is used to find the shortest path between
All pair of vertices in a graph
A single source vertex to all other vertices in a graph
All vertices to a single destination vertex in a graph
All edges in a graph
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Dijkstra's algorithm does not work correctly if the graph contains
Positive Edge Weights
Self - Loops
Zero Edge Weights
Negative Edge Weights
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In Dijkstra's Algorithm, What value is assigned to the source vertex at the beginning?
-1
Infinity
0
The maximum weight of the graph
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
A big fan of DE142

Quiz
•
University
15 questions
Fundamentals of Computer Science

Quiz
•
University
10 questions
AI QUIZ

Quiz
•
University
8 questions
G&N Unit 9

Quiz
•
University
8 questions
DES- Encryption

Quiz
•
University
12 questions
Data Science Quiz

Quiz
•
University
15 questions
Sorting

Quiz
•
University
13 questions
Graph Traversal Algorithms Quiz

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University