0% found this document useful (0 votes)
15 views4 pages

Daa QB

The document is a comprehensive outline of various topics in algorithms, including definitions, complexities, and methodologies such as divide-and-conquer, dynamic programming, and greedy algorithms. It covers fundamental concepts like algorithm analysis, recursion, and NP-completeness, along with specific algorithms like merge sort, Dijkstra's, and the Gale-Shapley algorithm. Additionally, it discusses optimization problems and approximation algorithms, providing a broad understanding of algorithmic principles.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views4 pages

Daa QB

The document is a comprehensive outline of various topics in algorithms, including definitions, complexities, and methodologies such as divide-and-conquer, dynamic programming, and greedy algorithms. It covers fundamental concepts like algorithm analysis, recursion, and NP-completeness, along with specific algorithms like merge sort, Dijkstra's, and the Gale-Shapley algorithm. Additionally, it discusses optimization problems and approximation algorithms, providing a broad understanding of algorithmic principles.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Unit 1: Introduction to Algorithms and Analysis

1. Define an algorithm.
2. What is the purpose of algorithm analysis?
3. List the steps in the divide-and-conquer approach.
4. Define asymptotic notation.
5. What is the difference between Big-O, Omega, and Theta notations?
6. Explain the best-case and worst-case complexity of an algorithm.
7. Define average-case complexity.
8. State the time complexity of merge sort.
9. What is a recurrence relation?
10. Write the recurrence relation for binary search.
11. Explain the concept of recursion in algorithms.
12. What is the time complexity of Quick Sort in the worst case?
13. Define tail recursion.
14. Write the general form of Master’s theorem.
15. What is the significance of asymptotic notations?
16. How do you compare two algorithms using complexity?
17. Define space complexity and its importance.
18. What is the purpose of the divide-and-conquer technique?
19. Write the base case for a recursive function.
20. What is meant by input size in complexity analysis?
21. State one advantage of iterative algorithms over recursive ones.
22. What is the importance of algorithm correctness?
23. How is Big-O notation represented graphically?
24. Define the height of a recursion tree.
25. Explain the relationship between recursion and divide-and-conquer.
26. What is the importance of a base case in recursion?
27. State one disadvantage of recursive algorithms.
28. List two real-world applications of divide-and-conquer.
29. How does binary search differ from linear search?
30. Define exponential time complexity.

Unit 2: Brute Force and Greedy Algorithms

1. Define the brute force method.


2. Give an example of a brute force algorithm.
3. What is the greedy method?
4. Define the principle of optimality.
5. State the time complexity of Kruskal’s algorithm.
6. Define the minimum spanning tree (MST).
7. Write the steps of Prim’s algorithm.
8. What is the fractional knapsack problem?
9. Differentiate between fractional and 0/1 knapsack problems.
10. Explain the activity selection problem.
11. State the time complexity of Dijkstra’s algorithm.
12. What is the greedy choice property?
13. Define the single-source shortest path problem.
14. What is the difference between BFS and Dijkstra’s algorithm?
15. How does Kruskal’s algorithm find an MST?
16. What are the inputs for the Huffman coding algorithm?
17. Define a connected graph.
18. What is the output of Prim’s algorithm?
19. State the time complexity of the Huffman coding algorithm.
20. How is a greedy algorithm different from dynamic programming?
21. What are overlapping subproblems in the context of algorithms?
22. Define a spanning tree.
23. What is a feasible solution in a greedy algorithm?
24. State one advantage of the greedy approach.
25. Why doesn’t the greedy method work for all problems?
26. How does the brute force approach solve TSP?
27. State the use of heaps in Prim’s algorithm.
28. Define connected components of a graph.
29. What is the purpose of sorting in Kruskal’s algorithm?
30. List two applications of greedy algorithms.

Unit 3: Dynamic Programming and Backtracking

1. What is dynamic programming?


2. How is dynamic programming different from divide-and-conquer?
3. Define overlapping subproblems.
4. Write the recurrence relation for the Fibonacci sequence.
5. What is memoization?
6. Define the 0/1 knapsack problem.
7. State the principle of optimality.
8. Differentiate between tabulation and memoization.
9. What is the longest common subsequence problem?
10. State Bellman-Ford’s algorithm.
11. What is the Floyd-Warshall algorithm?
12. Define backtracking.
13. What is a feasible solution in backtracking?
14. Define branch-and-bound.
15. What is the difference between backtracking and branch-and-bound?
16. Write the time complexity of the Bellman-Ford algorithm.
17. State the purpose of the N-Queens problem.
18. What is the subset-sum problem?
19. Define the traveling salesman problem (TSP).
20. What is the difference between a local and a global solution?
21. How does backtracking solve the N-Queens problem?
22. Write the recurrence relation for the matrix chain multiplication problem.
23. Define a decision tree in backtracking.
24. What is a dead-end in backtracking?
25. State one application of dynamic programming.
26. Explain how branch-and-bound solves the TSP.
27. What is the importance of dynamic programming in optimization problems?
28. Define the Hamiltonian cycle problem.
29. How does dynamic programming handle overlapping subproblems?
30. State the time complexity of the Floyd-Warshall algorithm.

Unit 4: Iterative Improvement and Matching Problems

1. What is iterative improvement?


2. Define a stable matching.
3. What is the stable marriage problem?
4. State Hall’s Marriage Theorem.
5. What is an augmenting path?
6. Define maximum matching in bipartite graphs.
7. State Kőnig’s theorem.
8. Write the time complexity of the Gale-Shapley algorithm.
9. Define local optima in optimization problems.
10. Differentiate between local and global optima.
11. State the Hopcroft-Karp algorithm.
12. What is a blocking pair in stable matching?
13. Define a vertex cover in bipartite graphs.
14. What is an alternating path?
15. What is the role of constraints in iterative improvement?
16. State the purpose of the Gale-Shapley algorithm.
17. What is the time complexity of the Hopcroft-Karp algorithm?
18. Define a free vertex in bipartite graphs.
19. State one real-world application of the stable marriage problem.
20. Explain the concept of hill climbing.
21. Define simulated annealing.
22. What is a feasible region in optimization problems?
23. Define gradient descent.
24. How does iterative improvement handle local optima?
25. State the role of randomness in simulated annealing.
26. Write one disadvantage of hill climbing.
27. What is a matching in graphs?
28. State the difference between perfect and maximum matching.
29. Define plateau in optimization problems.
30. State one advantage of the Gale-Shapley algorithm.
Unit 5: NP-Completeness and Approximation Algorithms

1. Define P, NP, and NP-complete problems.


2. What is the significance of NP-completeness?
3. State Cook’s theorem.
4. Define the satisfiability (SAT) problem.
5. What is a polynomial-time reduction?
6. Define NP-hard problems.
7. Differentiate between exact and approximate algorithms.
8. What is an approximation algorithm?
9. Define the vertex cover problem.
10. Write the time complexity of the vertex cover approximation algorithm.
11. What is a greedy approximation algorithm?
12. Define the traveling salesman problem (TSP).
13. What is the subset-sum problem?
14. Explain why the TSP is NP-hard.
15. State the purpose of approximation algorithms.
16. What is the difference between P and NP problems?
17. Define the Hamiltonian path problem.
18. State one example of an NP-complete problem.
19. What is a pseudo-polynomial algorithm?
20. Define the clique problem.
21. What is a decision problem?
22. State one limitation of approximation algorithms.
23. Define the chromatic number of a graph.
24. What is the time complexity of solving SAT problems?
25. Explain the significance of polynomial-time reductions.
26. Define an independent set in graphs.
27. What is the 3-SAT problem?
28. State one advantage of using approximation algorithms.
29. Define the knapsack approximation problem.
30. Explain the tradeoff between time and accuracy in approximation algorithms.

You might also like