wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

DAA

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of the problems cannot be solved by backtracking method?

a)

n-queen problem

b)

subset sum problem

c)

Hamiltonian circuit problem

d)

travelling salesman problem

2.

Backtracking algorithm is implemented by constructing a tree of choices called as?

a)

State-space tree


b)

state chart tree

c)

node tree

d)

Backtracking tree

3.

The problem of finding a path in a graph that visits every vertex exactly once is called?

a)

Hamiltonian path problem

b)

Hamiltonian cycle problem

c)

sum of subset problem

d)

Turnpike reconstruction problem

4.

Which of the following problems is similar to that of a Hamiltonian path problem?

a)

Knapsack problem

b)

closest pair problem

c)

travelling salesman problem

d)

assignment problem

5.

The problem of finding a subset of positive integers whose sum is equal to a given positive integer is called as?

a)

n- queen problem


b)

sum of subsets problem

c)

knapsack problem

d)

Hamiltonian circuit problem

6.

Branch and bound is a __________


a)

problem solving technique

b)

data structure

c)

sorting algorithm

d)

type of tree

7.

Choose the correct statement from the following.

a)

Greedy method is efficient than dynamic programming approach

b)

Backtracking approach gives only one optimal solution

c)

Branch and bound can be used for solving Optimization problems

d)

None of these

8.

Problems that can be solved in polynomial time are known as?

a)

intractable

b)

tractable

c)

decision

d)

complete

9.

28. _________ is the class of decision problems that can be solved by non-deterministic polynomial algorithms?

a)

NP

b)

P

c)

Hard

d)

Complete

10.

Problems that can be verified in Polynomial time are called

a)

P problems

b)

NP problems

c)

Tractable problems

d)

none of these

11.

To which of the following class does a CNF-satisfiability (say 3-SAT)problem belong?

a)

NP class

b)

P class

c)

NP complete

d)

NP hard

12.

Which of the following problems is NOT solved using dynamic programming?

a)

0/1 knapsack problem

b)

Matrix chain multiplication problem

c)

Edit distance problem

d)

Fractional knapsack problem

13.

A greedy algorithm can be used to solve all the dynamic programming problems.

a)

True

b)

False

14.

What happens when the backtracking algorithm reaches a complete solution?

a)

It backtracks to the root

b)

It continues searching for other possible solutions

c)

It traverses from a different route

d)

Recursively traverses through the same route

15.

..................................... of an undirected graph is to find minimum subset of vertices that cover all the edges.

a)

3-SAT Problem

b)

Clique problem

c)

Boolean problem

d)

vertex cover problem

16.

A graph with 'n' number of vertices is said to be complete if it contains ............number of edges.

a)

n

b)

n-1

c)

n(n-1)/2

d)

n/2

17.

....................... is the act of finding a set of variable assignments to True or False that make that statement true or alternately providing a proof that no such set of variable assignments can exist.

a)

3-SAT Problem

b)

Vertex Cover Problem

c)

Clique problem

d)

Clique decision problem

18.

Clique is a sub-graph of a graph which is complete.

a)

True

b)

False

19.

Dynamic programming differs from the greedy method since the greedy method produces only one feasible solution, which may or may not be optimal, while dynamic programming produces all possible sub-problems at most once, one of which guaranteed to be optimal.

a)

True

b)

False

20.

A...................... is a maximal connected sub-graph of a graph

a)

Component

b)

Connected component

c)

Bi-connected component

d)

none