Divide and Conquer Algorithms
This quiz is designed to assess your understanding of Divide and Conquer Algorithms. It covers various aspects of these algorithms, including their properties, applications, and time complexity.
Questions
Which of the following is a Divide and Conquer Algorithm?
- Merge Sort
- Bubble Sort
- Selection Sort
- Quick Sort
What is the time complexity of Merge Sort?
- O(n^2)
- O(n log n)
- O(n)
- O(log n)
Which of the following is an application of Divide and Conquer Algorithms?
- Sorting
- Searching
- Graph Algorithms
- All of the above
What is the key idea behind the Divide and Conquer approach?
- Divide the problem into smaller subproblems
- Solve the subproblems recursively
- Combine the solutions to solve the original problem
- All of the above
Which of the following is a property of Divide and Conquer Algorithms?
- They are always efficient
- They can solve any problem
- They are recursive in nature
- They have a worst-case time complexity of O(n^2)
What is the time complexity of Quick Sort in the best case?
- O(n^2)
- O(n log n)
- O(n)
- O(log n)
Which of the following is not a Divide and Conquer Algorithm?
- Binary Search
- Insertion Sort
- Merge Sort
- Quick Sort
What is the time complexity of Binary Search?
- O(n^2)
- O(n log n)
- O(n)
- O(log n)
Which of the following is an example of a Divide and Conquer Algorithm used in graph algorithms?
- Dijkstra's Algorithm
- Prim's Algorithm
- Kruskal's Algorithm
- Floyd-Warshall Algorithm
What is the time complexity of Kruskal's Algorithm?
- O(n^2)
- O(n log n)
- O(n)
- O(log n)
Which of the following is a Divide and Conquer Algorithm used for sorting?
- Bubble Sort
- Selection Sort
- Merge Sort
- Heap Sort
What is the time complexity of Heap Sort?
- O(n^2)
- O(n log n)
- O(n)
- O(log n)
Which of the following is a Divide and Conquer Algorithm used for searching?
- Linear Search
- Binary Search
- Interpolation Search
- Jump Search
What is the time complexity of Interpolation Search?
- O(n^2)
- O(n log n)
- O(n)
- O(log n)
Which of the following is a Divide and Conquer Algorithm used for finding the closest pair of points in a set of points?
- Closest Pair Problem
- Convex Hull Problem
- Traveling Salesman Problem
- Minimum Spanning Tree Problem