Module 5 Flashcards
This type of approach divides the problem into subproblems that are smaller instances of the same problem.
Divide and Conquer
What are the steps in the Divide and Conquer approach?
- Divide the problems into subproblems
- Conquer by solving the problems recursively
- Combine the solutions to the sub problems into the solution for the original problem.
This type of approach is used with 2 or more subproblems.
Divide and Conquer
This type of approach is based on exploiting the relationship between a solution to a given instance of a problem and a solution to its smaller instance.
Decrease and Conquer
This approach is also known as incremental or inductive approach.
Decrease and Conquer
What are the steps in the Decrease and Conquer approach?
- Decrease or reduce problem instance a smaller instance.
- Conquer by solving smaller instance of the problem.
- Extend solution of smaller instance to obtain solution to original problem.
What are the two types of implementation of Decrease and Conquer?
Top-down approach and Bottom-up approach
The top-down approach to Decrease and Conquer always leads to the __________ implementation of the problem.
Recursive
The bottom-up approach to Decrease and Conquer is usually implemented ___________, starting with a solution to the smallest instance of the problem.
Iteratively
What are the different variations of Decrease and Conquer?
- Decrease by a constant
- Decrease by a constant factor
- Variable-size-decrease
In this variation of Decrease and Conquer, the size of an instance is reduced by the same constant on each iteration of the algorithm.
Decrease by a constant
True or False.
In the decrease by a constant variation of Decrease and Conquer, the constant is equal to two, although other constant size reductions do happen occasionally.
False.
(The constant is equal to ONE)
In this variation of Decrease and Conquer, suggests reducing a problem instance by the same constant factor on each iteration of the algorithm.
Decrease by a factor
True or False.
In most applications of the decrease by a factor technique, the constant factor is equal to two and A reduction by a factor other than two is especially rare.
True
In this variation of the Decrease and Conquer approach, the size-reduction pattern varies from one iteration of an algorithm to another.
Variable-size-decrease