patternMinor
Generalizing the Comparison Sorting Lower Bound Proof
Viewed 0 times
sortinggeneralizingtheboundlowercomparisonproof
Problem
Let's start with the comparison sorting lower bound proof, which I'll summarize as follows:
Now consider the following generalization of the argument above:
Please answer all the following questions. I'm less concerned with the correctness of the particulars of step 4 than I am with the correctness of steps 1 - 3.
- For $n$ distinct numbers, there are $n!$ possible orderings.
- There is only one correct sorted sequence of the $n$ numbers.
- We are given that comparison ($
- So $\log_2(n!)$ comparisons are required.
Now consider the following generalization of the argument above:
- Define a space of possibilities and its size (in the case of sorting, $n!$ orderings)
- Define the goal state and its size (in this case, only one correctly sorted answer)
- Define the amount of information that is gained at each step of the computation (in this case, one bit since there are only two possible outcomes per comparison)
- Calculate the information difference between the space of possibilities (step 1) and the goal space (step 2) and divide by the information gain per step (step 3) to yield the lower bound on the number of steps (in this case, $(\log_2(n!)$ - $\log_2(1))$ / 1 = $\log_2(n!)$).
Please answer all the following questions. I'm less concerned with the correctness of the particulars of step 4 than I am with the correctness of steps 1 - 3.
- Are there any problems with the generalized argument?
- If the problems can be fixed, what are the fixes?
- If the problems can't be fixed, please point out the fatal ones and provide directions to sources which describe these lower-bounds proofs and their pitfalls.
Solution
The decision tree method for proving lower-bounds (like the $\Omega(n \lg n)$ lower-bound for comparison based sorting you mentioned) are often called information theory methods.
Here is a short video by Faith Ellen about this method:
The first part is here:
Here is a short video by Faith Ellen about this method:
- Lower-bounds, Part 2/4: Information Theory
The first part is here:
- Lower-bounds, Part 1/4: Introduction, Decision Trees
Context
StackExchange Computer Science Q#6562, answer score: 4
Revisions (0)
No revisions yet.