JNTU

JNTU B.Tech III DESIGN AND ANALYSIS OF ALGORITHMS Previous Question Paper (August - 2022 - R18)

B.Tech | III | III-II | R18 | August - 2022

Answer PaperPaper Code: 156ANMaximum Marks: 75Time: 3 Hours

Answer any five questions

All questions carry equal marks

Main

1

Show that the following equalities are correct:

15 marks
a

5n2 - 6n = θ(n2)

4 marks

Answer

To show 5n2 - 6n = θ(n2), we must find constants c1, c2, and n0 such that c1n2 ≤ 5n2 - 6n ≤ c2n2 for all n ≥ n0. Dividing by n2, we need c1 ≤ 5 - 6/n ≤ c2. For n ≥ 2, 5 - 6/n ≥ 5 - 3 = 2, so c1 = 2. For all n ≥ 1, 5 - 6/n ≤ 5, so c2 = 5. Since constants exist for n ≥ 2, the equality holds.

b

n! = O(nn)

4 marks

Answer

To show n! = O(nn), we must find c and n0 such that n! ≤ c(nn) for all n ≥ n0. We know that n! = 1 × 2 × 3 × ... × n. Since each term in the product 1, 2, ..., n is less than or equal to n, it follows that n! ≤ n × n × n × ... × n = nn. Thus, for c = 1 and n0 = 1, the condition n! ≤ 1(nn) is satisfied.

c

2n + n log n = θ(2n)

4 marks

Answer

Sign in to view the complete answer paper.

d

n3 + 106n2 = θ(n3)

3 marks

Answer

Sign in to view the complete answer paper.

215 marks
a

What are asymptotic notations? Explain with examples.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write and explain quick sort algorithm with an example.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Write and explain find algorithm with collapsing rule.

8 marks

Answer

Sign in to view the complete answer paper.

b

Describe the general method of backtracking.

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

What are union and find operations? Explain with suitable examples.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain about graph coloring algorithm.

7 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Solve the following 0/1 knapsack problem using dynamic programming: n=3, (W1, W2, W3) = (2, 3, 3), (P1, P2, P3) = (1, 2, 4) and m=6.

8 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate between dynamic programming and divide and conquer.

7 marks

Answer

Sign in to view the complete answer paper.

6

Consider four elements a1 < a2 < a3 < a4 with q(0,1,2,3,4) = (1/8, 3/16, 1/16, 1/16) and (p1, p2, p3, p4) = (1/4, 1/8, 1/16, 1/16). Construct the table of values of W(i, j), R(i, j) and C(i, j) computed by the algorithm to compute the roots of optimal sub-tree.

15 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Describe Greedy method control abstraction for the subset paradigm.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm of Greedy knapsack.

7 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Write a non-deterministic algorithm of sorting a list of elements in an array.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain the applications of branch and bound.

7 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of DESIGN AND ANALYSIS OF ALGORITHMS from JNTU for B.Tech CSE III III-II, August - 2022, R18.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in DESIGN AND ANALYSIS OF ALGORITHMS

Loading Question Papers

Fetching data from database...