DAA Questions 502040
DAA Questions 502040
Analysis.
Topic_2: Divide and Conquer: The general method and Binary search.
th
4. Apply kth smallest element finding algorithm to trace the k = 7 , for
elements {65, 70, 75, 80, 85, 60, 55, 50, 40} and justify why the
algorithm belongs to Divide and Conquer .
5. Given a set of items with different weights and Profits, describe the
steps involved in applying the greedy algorithm to determine the
maximum profit that can be carried in a Fractional knapsack with a
specific weight capacity. Include a discussion on how items are
selected and specify what factors are influence time complexity.
Topic_6: Job sequencing with deadlines and optimal storage on tapes.
9. Find the shortest path from s to t for the below multi stage graph
using forward approach.
Topic_10: Optimal binary search trees
10. Define the purpose of OBST and Find the w (0,2), c (0,2) and r (0,2)
for the given details: Let n = 4 and (a 1, a2, a3, a4) = (do, if, int, while). Let P
(1: 4) = (3, 3, 1, 1) and q (0:4) = (2, 3,1,1,1).
Topic_11: Reliability design, all pairs shortest paths.
12. Describe the steps for solving TSP problem using dynamic
programming and mention the time complexity.