wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DAA-UNIT-4 QUIZ

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following is not a backtracking algorithm?

a)

N-queens Problem

b)

Task Scheduling Algorithm

c)

Subset Sum Problem

d)

Tower of Hanoi Problem

2.

(a)   is an algorithm design method that can be used when the solution to a problem can be viewed as the result of a sequence of decisions

3.

The name backtrack was first coined by _________

a)

D.H.Lehmer

b)

L. Baumert

c)

R.J. Walker

d)

S.Golomb

4.

The term (a)   refers to all state space search methods in which all children of the –nodes are generated before any other live node can become the E-node.

5.

Which of the following statements is true for Branch - and - Bound search?

a)

Underestimates of remaining distance may cause deviation from optimal path

b)

Overestimates can't cause right path to be overlooked

c)

Dynamic programming principle can be used to discard redundant partial paths

d)

All of the above

6.

Read the following statements carefully, and choose the correct answer:

I. For the Backtracking algorithms stack data structure is used.

II. For the Branch-and-bound algorithms queue data structure is used.

a)

(I) is FALSE but (II) is TRUE

b)

(I) and (II) both are FALSE

c)

(I) is TRUE but (II) is FALSE

d)

(I) and (II) both are TRUE

e)

(II) is TRUE and (I) can’t be defined.

7.

For the 15-puzzle problem if the initial arrangement is as follows, then the value of ‘x’ used to find the reachability is (a)  

8.

Let S be an NP-complete problem and Q and R be two other problems not known to be in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of the following statements is true?

a)

R is NP-complete

b)

R is NP-hard

c)

Q is NP-complete

d)

Q is NP-hard

9.

Choose the correct statement from the following.

a)

branch and bound is more efficient than backtracking

b)

branch and bound is not suitable where a greedy algorithm is not applicable

c)

branch and bound divides a problem into at least 2 new restricted sub problems

d)

backtracking divides a problem into at least 2 new restricted sub problems

10.

"Both LIFO branch and bound strategy and backtracking leads to depth first search.-"The statement is true/false?

(a)