JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III DESIGN AND ANALYSIS OF ALGORITHMS Previous Question Paper (August/September - 2024 - R16)

B.Tech | III | I | R16 | August/September - 2024

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

Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b 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 input size, whereas space complexity measures the amount of memory (RAM) space required by an algorithm as a function of the input size.

b

How can we measure an algorithm’s running time?

3 marks

Answer

An algorithm's running time is measured by counting the number of primitive operations (such as additions, comparisons, or assignments) executed as a function of input size. This is typically expressed using Asymptotic Notation (Big-O, Omega, or Theta) to describe the growth rate of the execution time as the input size approaches infinity.

c

What is a set? List the operations that can be performed on it.

2 marks

Answer

Sign in to view the complete answer paper.

d

Define spanning tree and minimum spanning tree.

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

What is greedy strategy? Explain.

3 marks

Answer

Sign in to view the complete answer paper.

g

What is reliability design?

2 marks

Answer

Sign in to view the complete answer paper.

h

What are the applications of dynamic programming?

3 marks

Answer

Sign in to view the complete answer paper.

i

What is NP-hard problem?

2 marks

Answer

Sign in to view the complete answer paper.

j

What is meant by non-deterministic algorithm?

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

Distinguish between Merge sort and quick sort. Give suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Explain about Recursive Binary search algorithm with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write Randomized algorithm of Quicksort.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Write and explain the algorithm of Bi connected components with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about union and find algorithms.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Discuss about the graph traversal and coloring with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm to find the strongly connected components in a diagraph.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

State the Job – Sequencing with deadlines problem.

5 marks

Answer

Sign in to view the complete answer paper.

b

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) are given.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write the pseudo code for Dijkstra’s algorithm for single source shortest path problem.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm of Prim’s minimum cost spanning tree.

5 marks

Answer

Sign in to view the complete answer paper.

8

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

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

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

5 marks

Answer

Sign in to view the complete answer paper.

b

Describe the travelling sales person problem.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Explain Cook’s theorem and its significance.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss in detail about FIFO Branch and Bound solutions.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain the classes of NP Hard and NP-Complete.

5 marks

Answer

Sign in to view the complete answer paper.

b

Show that the Hamiltonian cycle problem on directed graphs is NP-complete.

5 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 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech CSE(NETWORKS) III I, August/September - 2024, R16.

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