Design and Analysis of Algorithm Unit 4 Notes AKTU (BCS503)
AKTU · BTECH · Semester 5 · Design and Analysis of Algorithm · Unit 4 · Notes
AKTU Design and Analysis of Algorithm (BCS503) Unit 4 notes for B.Tech Semester 5 – Dynamic Programming, Backtracking & Branch and Bound. Topics: Dynamic…
Open the interactive reader to study this resource on AcademicArk.
Unit 4: Dynamic Programming, Backtracking & Branch and Bound – AKTU syllabus topics
- Dynamic Programming: Knapsack Problem, Resource Allocation Problem, Longest Common Subsequence, Principle of Optimality
- All Pair Shortest Paths: Warshall's Algorithm, Floyd's Algorithm
- Backtracking: N-Queen Problem, Graph Coloring, Sum of Subsets, Hamiltonian Cycles
- Branch and Bound: Travelling Salesman Problem, Hamiltonian Cycles
Most asked AKTU PYQ questions from Unit 4
- Q6b. Define Floyd Warshall Algorithm for all pair shortest path and apply the same on following graph. (7 marks, 2019-20)
- Q5b. Explain Backtracking. Let set S= {1,3,4,5} and X=8, we have to find subset sum problem using backtracking approach. (10 marks, 2023-24)
- Q6a. What is the sum of subsets problem? Let w={5,7,10,12,15,18,20} and m=35. Find all possible subsets of w that sum to m using recursive backtracking algorithm for it. Draw the portion of the state-space tree that is generated. (10 marks, 2022-23)
- Q6b. Illustrate n queen's problem. Examine 4 queen's problem using back tracking method. (10 marks, 2022-23)
- Q2d. What is N queens problem? Draw a state space tree for 4 queens problem using backtracking. (10 marks, 2021-22)
- Q6b. Discuss n queen's problem. Solve 4 queen's problem using backtracking method? (10 marks, 2020-21)
- Q2d. What is sum of subset problem? Draw a state space tree for Sum of subset problem using backtracking? Let n=6, m=30 and w [1:6] = {5, 10, 12, 13, 15, 18} (10 marks, 2020-21)
- Q6a. Illustrate the N-queens problem? Draw “State Space Tree” for 4 queen’s problem using backtracking. (7 marks, 2024-25)
- Q2d. Write Floyd’s and Warshal’s algorithm to find all pair shortest path in a graph. Discuss its time complexity. (7 marks, 2024-25)
- Q6b. Give Floyd Warshall algorithm to find the shortest path for all pairs of vertices in a graph. Give the complexity of the algorithm. Explain with example. (7 marks, 2018-19)
AKTU paper codes: BCS503, KCS503, RCS502
Other Design and Analysis of Algorithm units
Design and Analysis of Algorithm previous year papers
More Design and Analysis of Algorithm resources
Browse all notes · Semester 5 notes · Design & Analysis of Algorithm notes