Lower Bound Theory
Lower Bound Theory
Text
2. Information Theory:
This is used to show that any possible algorithm for solving a problem must do
some minimal amount of work.
3. Decision tree:
This method can model the execution of any comparison based problem.
The tree contains the comparisons along all possible instruction traces.
The running time of the algorithm = the length of the path taken.
Worst-case running time = the height of tree.
5. Problem Reduction:
This technique calls for reducing the given problem to another problem for which a
lower bound is already known. Let P1 and P2 be any two problems. We say P1 reduces
to P2 (also written P1 α P2) in time T(n) if an instance of P1 can be converted into an
instance of P2 and a solution for P1 can be obtained from a solution for P2 in time < T(n).
Example-1: An algorithm for finding the Euclidean minimum spanning tree of n points
in the plane can be used to solve the element uniqueness problem, and must therefore
take time Ω(nlgn). The reduction is quite simple:
Suppose we want to determine whether any two of the numbers x 1,x2,…,xn are
equal. We can solve this problem by giving any Euclidean MST algorithm
the points (x1,0), (x2,0),…,(xn,0). The two closest points are known to be joined by
one of the (n-1) spanning-tree edges, so, we can scan these edges in linear
time, determine if any edge has zero length. Such an edge exists if two of x iꞌs are
equal. Therefore, if the spanning tree algorithm could operate in less than
O(nlgn) time, then the element uniqueness problem could be solved in less than
O(nlgn) time too.