JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II Year DESIGN AND ANALYSIS OF ALGORITHMS Previous Question Paper (May - 2019 - R13)

B.Tech | II Year | II Semester | R13 | May - 2019

Answer PaperPaper Code: 114CTMaximum Marks: 75Time: 3 Hours

Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit.

Part A

125 marks
a

Write the recursive Fibonacci algorithm and it’s recurrence relation.

2 marks

Answer

The recursive Fibonacci algorithm is defined as:

Fib(n) = { n if n ≤ 1; Fib(n-1) + Fib(n-2) if n > 1 }

The recurrence relation is:

T(n) = T(n-1) + T(n-2) + O(1)
b

Give the general strategy of divide and conquer method.

3 marks

Answer

The divide and conquer strategy follows three steps:

  1. Divide: Break the problem into smaller sub-problems of the same type.
  2. Conquer: Solve the sub-problems recursively. If the sub-problems are small enough, solve them directly.
  3. Combine: Merge the solutions of the sub-problems to form the solution for the original problem.
c

What is minimum cost spanning tree?

2 marks

Answer

Sign in to view the complete answer paper.

d

Explain about Single source shortest path problem.

3 marks

Answer

Sign in to view the complete answer paper.

e

Define dynamic programming.

2 marks

Answer

Sign in to view the complete answer paper.

f

Define i) Principles of optimality ii) Feasible solution iii) Optimal solution.

3 marks

Answer

Sign in to view the complete answer paper.

g

Write the control abstraction for LC-Search.

2 marks

Answer

Sign in to view the complete answer paper.

h

Describe the 4-queens problem using backtracking.

3 marks

Answer

Sign in to view the complete answer paper.

i

What is the significance of Cook’s theorem?

2 marks

Answer

Sign in to view the complete answer paper.

j

What are deterministic algorithms?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

Solve the following recurrence relations and give a Ω bound for each of them:

T(n) = 2 T(n/3) + 1
T(n) = 5 T(n/4) +n
T(n) = 9 T(n/3) + n2
T(n) = 49 T(n/25) + n3/2 log n
T(n) = T(n-1) + nc, where c≥1, a constant.
10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Explain the usefulness of the following functional operations on sets: i) MIN ii) DELETE iii) FIND iv) UNION v) INSERT

5 marks

Answer

Sign in to view the complete answer paper.

b

Briefly explain the Quick Sort Algorithm with suitable example.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Describe the Knapsack problem using greedy method.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a short note on BFS.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Write the algorithm for job sequencing with deadlines.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the algorithm and pseudocode to find the minimum spanning tree using prim’s algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Dynamic programming was best compared to greedy method. Justify the statement. Explain all pairs shortest path problem.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is matrix chain multiplication protocol? Give the solution for the problem of matrix chain multiplication and derive it’s time complexity.

5 marks

Answer

Sign in to view the complete answer paper.

OR
7

Discuss the dynamic programming solutions for the problems of:

a) Reliability design and b) Traveling salesperson.

10 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Briefly explain graph coloring using backtracking.

5 marks

Answer

Sign in to view the complete answer paper.

b

Draw the state space tree for m coloring when n=3 and m=3.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

What do you mean by bounding? Explain how these bound are useful in branch and bound methods?

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the method of reduction to solve TSP problem using branch and bound.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Explain the satisfiability problem.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the classes of NP-Hard and NP-Complete.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Discuss approximation algorithm for NP-hard problems.

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of DESIGN AND ANALYSIS OF ALGORITHMS from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech CSE II Year II Semester, May - 2019, R13.

For the question paper without answers, switch to the Question Paper tab.

Other papers in DESIGN AND ANALYSIS OF ALGORITHMS

Loading Question Papers

Fetching data from database...