Module 6 Flashcards
This type of approach deals with a group of design methods base on transformation.
Transform and Conquer
In transformation, the problem’s instance is _______.
Modified
What are the three major variations of Transform and Conquer?
(RIP)
- Representation Change
- Instance Simplification
- Problem Reduction
It is a transformation to a different representation of the same instance.
Representation Change
It is a transformation into a simpler or more convenient instance of the same problem.
Instance Simplification
It is a transformation to an instance of a different problem for which an algorithm is already available.
Problem Reduction
What is the Transform and Conquer strategy flow?
Problem Instance -> Transform Variation -> Solution
What problems involving lists are easier when the list is sorted?
(GPECS)
- Geometric Algorithms
- Presorting
- Element Uniqueness
- Computing the median (Selection Problem)
- Searching
Efficiency of algorithms with pre-sorts depends on what?
Efficiency of Sorting
These comparisons are necessary in the worst case to sort a list of size “n” by any comparison-based algorithm.
[log2 n!] = n log2 n
These comparisons are also sufficient to sort array of size “n” by Merge Sort and Quick Sort.
n log2 n
What is the efficiency of Searching with Pre-sorting?
Θ(nlog n) + O(log n) = Θ(nlog n)
What is the efficiency of Element Uniqueness with Pre-sorting?
Θ(nlog n) + O(n) = Θ(nlog n)
What is the efficiency of Computing for Mode with Pre-sorting?
Θ(nlog n) + O(n) = Θ(nlog n)
The AVL tree was named after whom?
Adelson-Velsky and Landis