Analysis of design and algorithm question bank
Analysis of design and algorithm question bank
3. Define Transitive closure? Implement and Apply Warshall’s Algorithm to compute Transitive
closure for the graph.
5 Implement and explain Kruskal’s method and also apply Kruskal’s algorithm to find the minimum
cost spanning tree for the following graph.
6 Implement and explain prim’s algorithm and also apply prim’s algorithm for the following graphs.
7 What are Huffman trees? Explain the different types of Huffman encoding. Construct Huffman
codes for the given data.
Module- 3 & 5
9 Write Horspool’s Algorithm for the Input Enhancement in String Matching. Consider searching for
the pattern QUITTERS in a text WINNERS NEVER QUIT AND QUITTERS NEVER WIN
that comprises English letters and spaces, construct suitable shift table and also apply algorithm to
find the pattern.
10 Develop Comparison Counting Sort Algorithm. Sort the elements 65 32 45 92 75 68 58 using the
same and also derive its complexity.
11 Describe the concept of Backtracking. Explain the sorting of four queens problem using back
tracking.
12 What is Backtracking? Write the Psuedocode for back-tracking algorithm. Let W = {3, 5, 6, 7} and
m = 15. Find all possible subsets of W that sum to m. Draw the state space tree that is generated.
13 Explain the following with example
(i) P Problems. (ii) NP Problems. (iii) NP-Hard Problems (IV) NP-Complete Problems.
14 Solve the given Knapsack problem using Branch and Bound Method.
15 Illustrate the concept Approximation algorithms for NP-Hard problems with a Knapsack problem.
16 Define Decision tree. Justify how decision trees can be used for searching a sorted array.
17 Draw decision tree for the tree-element selection sort and insert sort.
*****************************************