JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III ALGORITHM DESIGN AND ANALYSIS Previous Question Paper (February - 2023 - R18)

B.Tech | III | II | R18 | February - 2023

Answer PaperPaper Code: 156ADMaximum 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

1.a

Define Little oh notation.

2 marks

Answer

The Little oh notation, denoted as o(g(n)), describes an asymptotic upper bound that is not tight. A function f(n) is said to be o(g(n)) if for any positive constant c > 0, there exists a constant n₀ > 0 such that 0 ≤ f(n) < c · g(n) for all n ≥ n₀.

lim (n→∞) [f(n) / g(n)] = 0
1.b

Write the application area of divide and conquer strategy.

3 marks

Answer

The divide and conquer strategy is a fundamental algorithmic paradigm used extensively in computer science for solving complex problems by breaking them into smaller, manageable sub-problems. Its primary application areas include:

  • Sorting Algorithms: It is the core logic behind efficient sorting techniques such as Merge Sort and Quick Sort, which achieve O(n log n) average time complexity.
  • Searching Algorithms: It is used in Binary Search to locate elements in a sorted array by repeatedly dividing the search interval in half, resulting in O(log n) complexity.
  • Computational Geometry: It is applied to solve problems like finding the closest pair of points in a plane or constructing convex hulls.
  • Matrix Multiplication: Strassen's algorithm utilizes divide and conquer to perform matrix multiplication faster than the standard O(n³) approach.
  • Large Integer Multiplication: The Karatsuba algorithm employs this strategy to multiply large numbers more efficiently than the traditional long multiplication method.
1.c

What is collapsing find?

2 marks

Answer

Sign in to view the complete answer paper.

1.d

Define Chromatic number. Give one example.

3 marks

Answer

Sign in to view the complete answer paper.

1.e

What is the beauty of dynamic programming?

2 marks

Answer

Sign in to view the complete answer paper.

1.f

How many possible binary trees with n nodes, where n=3, draw them.

3 marks

Answer

Sign in to view the complete answer paper.

1.g

Define spanning tree.

2 marks

Answer

Sign in to view the complete answer paper.

1.h

List the application area of Greedy approach.

3 marks

Answer

Sign in to view the complete answer paper.

1.i

What is E-node? Give an example.

2 marks

Answer

Sign in to view the complete answer paper.

1.j

Compare and contrast deterministic algorithms and non-deterministic algorithms.

3 marks

Answer

Sign in to view the complete answer paper.

PART - B

210 marks
a

Write an Iterative algorithm for binary search. What is its best case analysis?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write any five rules to define an algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

What is an algorithms? List the properties of an algorithm.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write the worst case analysis of quick sort with suitable example.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Write the union and find algorithms.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the 4-Queens problem.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Compare and contrast divide and conquer approach with dynamic programming.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the sum of subset problem.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Consider n=4 & (q1,q2,q3,q4)=(do, if, int, while) the values for p’s & q’s are given as p(1:4)=(3,3,1,1) & q(0:4)=(2,3,1,1,1). Construct the Optimal Binary Search tree.

5 marks

Answer

Sign in to view the complete answer paper.

b

Define backtracking. List the advantages of it.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write the general method for dynamic programming.

5 marks

Answer

Sign in to view the complete answer paper.

b

Find an Optimal Solution to the knapsack instance n=7, m=15, (P1,P2…..P7)=(10,5,15,7, 6, 18,3) and (W1,W2…..W7)=(2,3,5,7,1,4,1).

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Find the minimum cost spanning tree for the following graph using kruskals algorithm.

7 marks

Answer

Sign in to view the complete answer paper.

b

What is the need of Greedy approach?

3 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Consider the following jobs, deadlines and profits. Use the scheduling with deadline algorithm to maximize the total profit.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain Single source shortest path problem with an illustrative example.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Define Cook’s theorem and prove it.

5 marks

Answer

Sign in to view the complete answer paper.

b

Define NP-Hard problem. Explain it’s time complexity.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain P, NP and NP-Complete classes with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the strategy to prove that a problem is NP-Hard.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of ALGORITHM DESIGN AND ANALYSIS from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech IT III II, February - 2023, R18.

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

Other papers in ALGORITHM DESIGN AND ANALYSIS

Loading Question Papers

Fetching data from database...