Quiz2

Quiz2

University

10 Qs

quiz-placeholder

Similar activities

20CS2018 - DAA - Batch1

20CS2018 - DAA - Batch1

University

15 Qs

Artificial Intelligence 1

Artificial Intelligence 1

University

10 Qs

DSAA Quiz

DSAA Quiz

University

15 Qs

CSS TECH TRIVIA - MEDIUM LEVEL

CSS TECH TRIVIA - MEDIUM LEVEL

University

10 Qs

Design And Analysis of Algorithms

Design And Analysis of Algorithms

University

10 Qs

ANALYSIS OF ALGORITHMS

ANALYSIS OF ALGORITHMS

University

15 Qs

ADA Greedy Intl

ADA Greedy Intl

University

15 Qs

Algorithms - Time Complexity

Algorithms - Time Complexity

University

10 Qs

Quiz2

Quiz2

Assessment

Quiz

Computers

University

Hard

Created by

Prasenjit Das

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?