JNTU

JNTU B.Tech III DESIGN AND ANALYSIS OF ALGORITHMS Previous Question Paper (May/June - 2019 - R16)

B.Tech | III | III-I | R16 | May/June - 2019

Answer PaperPaper Code: 135AFMaximum Marks: 75Time: 3 hours

Note: This question paper contains two parts A and B. 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

In what way a time complexity differs from space complexity.

2 marks

Answer

Time complexity measures the amount of computational time an algorithm takes to run as a function of the input size, whereas space complexity measures the amount of memory (RAM) space an algorithm requires to execute based on the input size.

b

Give the general plan of divide and conquer algorithms.

3 marks

Answer

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

Write an algorithm for collapsing find.

2 marks

Answer

Sign in to view the complete answer paper.

d

Define Backtracking? List the applications of Backtracking

3 marks

Answer

Sign in to view the complete answer paper.

e

What is the importance of knapsack algorithm in our daily life?

2 marks

Answer

Sign in to view the complete answer paper.

f

Write Control Abstraction of Greedy method.

3 marks

Answer

Sign in to view the complete answer paper.

g

What you mean by dynamic programming.

2 marks

Answer

Sign in to view the complete answer paper.

h

Define optimal binary search tree with an example.

3 marks

Answer

Sign in to view the complete answer paper.

i

State the difference between FIFO and LC Branch and Bound algorithms.

2 marks

Answer

Sign in to view the complete answer paper.

j

Write the Control Abstraction of Least – Cost Branch and Bound.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

What are the different mathematical notations used for algorithm analysis.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write Divide – And – Conquer recursive Quick sort algorithm and analyze the algorithm for average time complexity.

5 marks

Answer

Sign in to view the complete answer paper.

OR
3

Write Randomized algorithm of Quicksort.

10 marks

Answer

Sign in to view the complete answer paper.

4

Write an algorithm to determine the Hamiltonian cycle in a given graph using backtracking.

10 marks

Answer

Sign in to view the complete answer paper.

OR
5

Explain the AND/OR graph problem with an example.

10 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain the Knapsack problem with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a greedy algorithm for sequencing unit time jobs with deadlines and profits.

5 marks

Answer

Sign in to view the complete answer paper.

OR
7

State the Job – Sequencing with deadlines problem. Find an optimal sequence to the n = 5 Jobs where profits (P1, P2, P3, P4, P5) = (20, 15, 10, 5, 1) and deadlines (d1, d2, d3, d4, d5) =(2, 2, 1, 3, 3).

10 marks

Answer

Sign in to view the complete answer paper.

8

Draw an Optimal Binary Search Tree for n=4 identifiers (a1,a2,a3,a4) = ( do, if, read, while) P(1:4)=(3,3,1,1) and Q(0:4)=(2,3,1,1,1).

10 marks

Answer

Sign in to view the complete answer paper.

OR
9

Explain how Matrix – chain Multiplication problem can be solved using dynamic programming with suitable example.

10 marks

Answer

Sign in to view the complete answer paper.

10

Solve the Travelling Salesman problem using branch and bound algorithms.

10 marks

Answer

Sign in to view the complete answer paper.

OR
11

Explain the FIFO BB 0/1 Knapsack problem procedure with the knapsack instance for n=4, m=15,(p1,p2,p3,p4)=(10,10,12,18), (w1,w2,w3,w4) =(2, 4, 6, 9). Draw the portion of the state space tree and find optimal solution.

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 JNTU for B.Tech CSE III III-I, May/June - 2019, R16.

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...