4th_DAA

4th_DAA

University

10 Qs

quiz-placeholder

Similar activities

Backtracking

Backtracking

University

13 Qs

time and space complexity

time and space complexity

University

13 Qs

DSA Diaries 2.0

DSA Diaries 2.0

University

11 Qs

Analysis of Algorithms Quiz

Analysis of Algorithms Quiz

University

10 Qs

Greedy Method

Greedy Method

University

12 Qs

Viva 1 - Fractional knapsack problem

Viva 1 - Fractional knapsack problem

University

5 Qs

Quiz3_DivideConquer_GreedyApproach

Quiz3_DivideConquer_GreedyApproach

University

10 Qs

BTAP3

BTAP3

University

5 Qs

4th_DAA

4th_DAA

Assessment

Quiz

Computers

University

Medium

Created by

Sowmya D

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a backtracking algorithm?

N-queens Problem

Task Scheduling Algorithm

Subset Sum Problem

Tower of Hanoi Problem

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given items as {value,weight} pairs {{40,20},{30,10},{20,5}}. The capacity of knapsack=20. Find the maximum value output assuming items to be divisible.

60

100

80

40

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Time complexity of fractional knapsack problem is ____________

O(n log n)

O(n)

O(n2)

O(nW)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In the given graph, identify the shortest path having minimum cost to reach vertex 'e' if 'a' is the source vertex.

a-b-e

a-c-e

a-c-d-e

a-c-d-b-e

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can traverse the state space tree only in DFS manner?

branch and bound

dynamic programming

greedy algorithm


backtracking

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the backtracking algorithm reaches a complete solution?

It backtracks to the root

It continues searching for other possible solutions

It traverses from a different route

Recursively traverses through the same route

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For how many queens was the extended version of Eight Queen Puzzle applicable for n*n squares?

5

8

N

6

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?