JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

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

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

Answer PaperPaper Code: 114CSMaximum 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. Each question carries 10 marks and may have a, b, c as sub questions.

Part A

125 marks
a

Explain the Big oh notation.

2 marks

Answer

Big Oh notation (O-notation) provides an asymptotic upper bound on the growth rate of a function. A function f(n) is O(g(n)) if there exist positive constants c and n0 such that f(n) ≤ c * g(n) for all n ≥ n0, representing the worst-case time complexity of an algorithm.

b

Explain Binary search in brief.

3 marks

Answer

Binary search is an efficient divide-and-conquer algorithm used to find an element in a sorted array. It repeatedly divides the search interval in half by comparing the target value to the middle element; if they are not equal, the half in which the target cannot lie is eliminated, continuing until the element is found or the interval is empty.

c

What are disjoint sets?

2 marks

Answer

Sign in to view the complete answer paper.

d

What is spanning tree?

3 marks

Answer

Sign in to view the complete answer paper.

e

State the travelling salesman problem.

2 marks

Answer

Sign in to view the complete answer paper.

f

Write the applications of Dynamic programming.

3 marks

Answer

Sign in to view the complete answer paper.

g

What is Hamiltonian cycle?

2 marks

Answer

Sign in to view the complete answer paper.

h

Explain 8-queen problem.

3 marks

Answer

Sign in to view the complete answer paper.

i

What is NP-Complete?

2 marks

Answer

Sign in to view the complete answer paper.

j

Explain non-deterministic algorithm.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Describe the performance analysis of an algorithm in detail.

5 marks

Answer

Sign in to view the complete answer paper.

b

Briefly explain merge sort algorithm with suitable example and derive its time complexity.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Define time complexity. Describe different notations used to represent time complexities.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain divide and conquer in detail.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Write a nonrecursive algorithm for inorder traversal of a binary tree T.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain AND/OR Graphs.

5 marks

Answer

Sign in to view the complete answer paper.

OR
5

Explain in detail about:

10 marks
a

Depth First Search

5 marks

Answer

Sign in to view the complete answer paper.

b

Breadth First Search.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain Optimal binary search tree.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the Prim’s algorithm with an example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Solve the following 0/1 Knapsack problem where P=(10, 5, 15, 7, 6, 18, 3), W=(2, 3, 5, 7, 1, 4, 1), C=15, n=7.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm of all pairs shortest path problem.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Explain in detail about backtracking.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the graph coloring with example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Briefly explain the Hamiltonian cycle using backtracking.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the FIFO Branch and Bound solution.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Compare and contrast between NP-Hard and NP Complete.

5 marks

Answer

Sign in to view the complete answer paper.

b

Briefly explain Cooks theorem.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain the classes of P and NP.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a non-deterministic Knapsack algorithm.

5 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 II, 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...