What does the Decrease and Conquer algorithm primarily exploit?
Group of answer choices
The relationship between unrelated problems
The division of a problem into equal parts
The relationship between a problem and its smaller instance
The combination of subproblem solutions
The relationship between a problem and its smaller instance
Which of the following best describes the Divide and Conquer technique?
Group of answer choices
Reducing a problem to a single smaller instance
Solving a problem by reducing it by a constant factor
Solving a problem iteratively without recursion
Dividing a problem into multiple subproblems and solving them recursively
Dividing a problem into multiple subproblems and solving them recursively
Which sorting algorithm is an example of the Decrease and Conquer approach?
Group of answer choices
Heap Sort
Merge Sort
Quick Sort
Insertion Sort
Insertion Sort
What is the time complexity of the worst-case scenario for Insertion Sort?
Group of answer choices
O(log n)
O(n)
O(n log n)
O(n²)
O(n²)
In which variation of Decrease and Conquer is the problem size reduced by the same constant on each iteration?
Group of answer choices
Variable size decrease
None of the above
Decrease by a constant
Decrease by a constant factor
Decrease by a constant
Which algorithm is an example of the “Decrease by a constant factor” approach?
Group of answer choices
BFS
Topological Sorting
Binary Search
Insertion Sort
Binary Search
What is the primary difference between Divide and Conquer and Decrease and Conquer?
Group of answer choices
Divide and Conquer uses recursion, while Decrease and Conquer does not
Decrease and Conquer is iterative, while Divide and Conquer is recursive
Divide and Conquer generates multiple subproblems, while Decrease and Conquer generates one
There is no difference
Divide and Conquer generates multiple subproblems, while Decrease and Conquer generates one
Which graph traversal algorithm uses a stack explicitly or implicitly?
Group of answer choices
Both DFS and BFS
Neither DFS nor BFS
Depth First Search (DFS)
Breadth First Search (BFS)
Depth First Search (DFS)
What is the time complexity of Depth First Search (DFS)?
Group of answer choices
O(V²)
O(V + E)
O(log V)
O(E)
O(V + E)
What is the best-case time complexity of Insertion Sort?
Group of answer choices
O(log n)
O(n)
O(n²)
O(n log n)
O(n)
Which algorithm uses a queue for traversal?
Group of answer choices
Depth First Search (DFS)
Both DFS and BFS
Neither DFS nor BFS
Breadth First Search (BFS)
Breadth First Search (BFS)
Which of the following is NOT a variation of Decrease and Conquer?
Group of answer choices
Decrease by a constant factor
Variable size decrease
Increase by a constant
Decrease by a constant
Increase by a constant
What is the space complexity of Depth First Search (DFS)?
Group of answer choices
O(V + E)
O(E)
O(V)
O(log V)
O(V)
Which algorithm is used to solve the “Fake Coin Problem”?
Group of answer choices
BFS
Insertion Sort
Decrease by a constant factor
Merge Sort
Decrease by a constant factor
Which of the following algorithms is iterative in nature?
Group of answer choices
Recursive DFS
Iterative Insertion Sort
Recursive Binary Search
Recursive Merge Sort
Iterative Insertion Sort
What is the principle behind Insertion Sort?
Group of answer choices
Use a pivot to partition the array
Compare all elements with each other simultaneously
Insert elements at their correct position sequentially
Divide the array into two halves
Insert elements at their correct position sequentially
Which algorithm is best suited for finding the median of a dataset?
Group of answer choices
Insertion Sort
Decrease by a constant factor
Variable size decrease
Binary Search
Variable size decrease
Which traversal method explores all neighbors at the present depth before moving to the next level?
Group of answer choices
Breadth First Search (BFS)
Both DFS and BFS
Depth First Search (DFS)
Neither DFS nor BFS
Breadth First Search (BFS)
What is the time complexity of Breadth First Search (BFS)?
Group of answer choices
O(E)
O(V²)
O(V + E)
O(log V)
O(V + E)
Which algorithm would you use to search for an element in a sorted array efficiently?
Group of answer choices
BFS
Insertion Sort
DFS
Binary Search
Binary Search
What does the “Transform and Conquer” algorithm strategy primarily focus on?
Group of answer choices
Transforming a problem into a simpler or more convenient form
Ignoring problem instances
Solving problems without modifying them
Increasing the complexity of problems
Transforming a problem into a simpler or more convenient form
Which of the following is NOT one of the three major variations of the Transform and Conquer approach?
Group of answer choices
Representation Change
Instance Simplification
Data Duplication
Problem Reduction
Data Duplication
What is the primary benefit of presorting in algorithms?
Group of answer choices
It reduces the need for sorting
It eliminates duplicates automatically
It increases computational time
It simplifies searching and other operations
It simplifies searching and other operations
What is the efficiency of checking if all elements in an array are unique using a brute-force algorithm?
Group of answer choices
O(n^2)
O(log n)
O(n log n)
O(n)
O(n^2)