Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech II DESIGN AND ANALYSIS OF ALGORITHMS Previous Question Paper (July/August - 2021 - R15)

B.Tech | II | II | R15 | July/August - 2021

Answer PaperPaper Code: 124CTMaximum Marks: 75Time: 3 Hours

Answer any Five Questions. All Questions Carry Equal Marks.

Main

115 marks
a

Solve the following recurrence relation

T(n)=4T(n/2)+n2
, where n>1 and is a power of 2.

8 marks

Answer

To solve the recurrence relation T(n) = 4T(n/2) + n2, we use the Master Theorem. The recurrence is in the form T(n) = aT(n/b) + f(n), where a = 4, b = 2, and f(n) = n2.

First, calculate the value of nlogba:

nlog24 = n2

Comparing f(n) = n2 with nlogba = n2, we observe that f(n) = Θ(nlogba). This corresponds to Case 2 of the Master Theorem.

According to Case 2, if f(n) = Θ(nlogba), then the solution is:

T(n) = Θ(nlogba log n)

Substituting the values, we get:

T(n) = Θ(n2 log n)
b

Explain the properties of Bi-connected components.

7 marks

Answer

A Bi-connected component (or biconnected component) is a maximal biconnected subgraph of a given undirected graph. A graph is biconnected if it remains connected after the removal of any single vertex and its incident edges.

The properties of Bi-connected components include:

  • Articulation Points: An articulation point is a vertex whose removal increases the number of connected components. Every articulation point belongs to at least two different biconnected components.
  • Edge Disjointness: Any two distinct biconnected components share at most one vertex, which must be an articulation point. No two biconnected components share an edge.
  • Partitioning: Every edge of the graph belongs to exactly one biconnected component. Thus, the set of biconnected components forms a partition of the edges of the graph.
  • Cycles: A biconnected component is either a simple cycle, a single edge (bridge), or a complex structure where any two vertices lie on a common simple cycle.
  • Robustness: These components represent the most robust parts of a network; even if one node fails, the connectivity within the component is maintained (excluding the articulation points).
215 marks
a

Find an optimal solution by using greedy knapsack for the following instance:

n=5, m=15, (p1, p2, ….p5) = (10, 5, 7, 6, 3) and (w1, w2……w5) = (3, 3, 5, 7, 1, 4)
.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm for prim’s minimum cost spanning tree.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Write an algorithm for single source shortest path.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain the Kruskal’s minimum cost spanning tree.

7 marks

Answer

Sign in to view the complete answer paper.

4

Consider n = 4 and (q1, q2, q3, q4) = (do, if, int, while). The values for p’s and q’s are given as

p(1:4) = (3, 3, 1, 1) and q(0:4) = (2, 3, 1, 1, 1)
. Construct the optimal binary search tree.

15 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Find the shortest paths by using all pairs shortest paths algorithm to the weighted graph whose adjacency matrix is:

0 4 11
6 0 2
3 0 ∞
8 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the reliability design problem.

7 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Let

w=(5, 10, 10, 25)
and
m=25
. Find all possible subsets of W that sum to M using fixed tuple length and variable tuple length.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain in detail about LIFO branch and Bound with an example.

7 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

What is meant by Halting problem? Explain with an example.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write a non-deterministic knapsack algorithm.

7 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Write a non-deterministic sort algorithm.

7 marks

Answer

Sign in to view the complete answer paper.

b

Show that the SUBSET-SUM problem is in NP – Hard.

8 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 II II, July/August - 2021, R15.

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