What is the appropriate data structure for Prim's minimum spanning tree?

Quiz2

Quiz
•
Computers
•
University
•
Hard
Prasenjit Das
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Stack
Linear Queue
Tree
Priority Queue
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is represented by asymptotic notation O(1)
Constant time
linear time
time less
exponential time
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the appropriate data structure for DFS algorithm?
queue
stack
array
tree
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
time complexity for recurrence relation T(n)=2T(n/2)+n
O(log n)
O(n log n)
O(n^2)
O(2 log n)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fractional Knapsack is efficiently solved by
Dynamic programming
Greedy algorithm
Divide conquer
none of these
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
0/1 knapsack can be solved by greedy algorithm?
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which algorithm is used to solve single source shortest path problem in a graph with negative edge?
dijkstra
bellman ford
floyd warshal
none of these
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Quiz 1

Quiz
•
University
15 questions
Knowledge Knockout[Quiz Round](2nd-4th years)

Quiz
•
University
10 questions
CSS TECH TRIVIA - MEDIUM LEVEL

Quiz
•
University
10 questions
AdvancedProgramming_intro

Quiz
•
University
14 questions
Seatwork Greedy Algorithm Data Structure

Quiz
•
University
15 questions
DSA Quiz 2cse2

Quiz
•
University
10 questions
Algorithms and algorithmic Complexity

Quiz
•
University
14 questions
Sorting Algorithms

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