Question: I claim that merge-sort is actually a linear time algorithm -- i.e., faster than (NlogN). Below is a sketch of my proof that the runtime

I claim that merge-sort is actually a linear time algorithm -- i.e., faster than (NlogN).

Below is a sketch of my proof that the runtime of merge-sort is actually I claim that merge-sort is actually a linear time algorithm -- i.e.,.

For simplicity, I am only proving my claim for powers of 2 (so I don't have to worry about floors and ceilings).

We already know that the runtime of merge-sort is described by the recurrence relation

faster than (NlogN). Below is a sketch of my proof that the

runtime of merge-sort is actually . For simplicity, I am only proving for my claim for powers of 2 (so I don't have to worry

I want to show that about floors and ceilings). We already know that the runtime of merge-sort. To make this Big-Oh claim, I will show that that is described by the recurrence relation for I want to show that for all . To make this Big-Oh claim, I will show that that for and some constant all and some constant . BASE-CASE: as long as clearly such a.

BASE-CASE: constant exists! INDUCTIVE HYPOTHESIS: Assume the claim holds for powers of 2 as long as less than where is itself a power of 2: where (and so clearly such a constant exists!

INDUCTIVE HYPOTHESIS: Assume the claim holds for powers of 2 less than ). Notice that this covers Now I have to prove the claim where holds at . PROOF: from recurrence relation and by I.H. applied to is itself a power of 2:

algebra algebra because is a constant and a constant times is still where , since we know that "constants don't matter"! Q.E.D. Of course, I (and so am wrong! The runtime of MergeSort is really . Your Job: Answer).

Notice that this covers this question: What is fundamentally wrong with my proof?

Now I have to prove the claim holds at image text in transcribed.

PROOF:

image text in transcribed from recurrence relation and image text in transcribed

image text in transcribed by I.H. applied to image text in transcribed

image text in transcribed algebra

image text in transcribed algebra

image text in transcribed because image text in transcribed is a constant and

a constant times image text in transcribed is still image text in transcribed,

since we know that "constants don't matter"!

Q.E.D.

Of course, I am wrong! The runtime of MergeSort is really image text in transcribed.

Your Job: Answer this question:

What is fundamentally wrong with my proof?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!