Search Header Logo

Quiz2

Authored by Prasenjit Das

Computers

University

Quiz2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?