JNTU

JNTU B.Tech III DESIGN AND ANALYSIS OF ALGORITHMS Previous Question Paper (November/December - 2018 - R16)

B.Tech | III | I | R16 | November/December - 2018

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

Write an algorithm to find the number of digits in the binary representation of a positive decimal integer.

2 marks

Answer

To find the number of digits in the binary representation of a positive decimal integer n:

  1. Initialize count = 0.
  2. While n > 0:
  3. Set n = floor(n / 2).
  4. Increment count by 1.
  5. Return count.
b

How can we measure an algorithm’s running time?

3 marks

Answer

An algorithm's running time is measured using two primary methods:

  • Empirical Analysis: Running the algorithm on a computer for various input sizes and measuring the actual execution time using a clock or timer.
  • Theoretical Analysis: Counting the number of primitive operations (like assignments, comparisons, or arithmetic) as a function of input size n, typically expressed using Asymptotic Notations like Big-O, Omega, and Theta.
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

Give brief note on graph coloring.

3 marks

Answer

Sign in to view the complete answer paper.

e

State the Job – Sequencing Deadline Problem.

2 marks

Answer

Sign in to view the complete answer paper.

f

Find an optimal solution to the knapsack instance n=4 objects and the capacity of knapsack m=15, profits (10, 5, 7, 11) and weight are (3, 4, 3, 5).

3 marks

Answer

Sign in to view the complete answer paper.

g

What is Travelling Sales Man Problem?

2 marks

Answer

Sign in to view the complete answer paper.

h

Give the statement of Reliability design problem.

3 marks

Answer

Sign in to view the complete answer paper.

i

State the methodology of Branch and Bound.

2 marks

Answer

Sign in to view the complete answer paper.

j

Define Bounding Function? Give the statement of 0/1 Knapsack FIFO BB.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Explain Recursive Binary search algorithm with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Distinguish between Merge sort and quick sort.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

What is stable sorting method? Is Merge sort a stable sorting method? Justify your answer.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain partition exchange sort algorithm and trace this algorithm for n =8 elements: 24, 12, 35, 23, 45, 34, 20, 48.

5 marks

Answer

Sign in to view the complete answer paper.

4

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

10 marks

Answer

Sign in to view the complete answer paper.

OR
5

Give the solution to the 8-queens problem using backtracking.

10 marks

Answer

Sign in to view the complete answer paper.

6

What is Minimum cost spanning tree? Explain an algorithm for generating minimum cost Spanning tree and list some applications of it.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Explain the greedy technique for solving the Job Sequencing problem.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write with an example of Prim’s algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Discuss the time and space complexity of Dynamic Programming traveling sales person algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm of matrix chain multiplication.

5 marks

Answer

Sign in to view the complete answer paper.

OR
9

With the help of suitable example explain the all pairs shortest path problem.

10 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Give the 0/1 Knapsack LCBB algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate between deterministic and non deterministic algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Draw the portion of state space tree generated by LCBB for the 0/1 Knapsack instance: n = 5, (p1, p2, ..., p5) = (10, 15, 6, 8, 4), (w1, w2, ..., w5) = (4, 6, 3, 4, 2) and m=12. And also find an optimal solution of the same.

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 I, November/December - 2018, 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...