Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsDiscussion Forum → Quick!
Quick!
2004-06-30, 11:02 AM #1
Give a complete justification of Theorem 4.1, which says: "The merge-sort tree associated with an execution of merge-sort on a sequence of size n has height ceil(logn)."

------------------
Juztyn
Taking credit for: Canyon Stream, Higher Ground, The Space Between, Death's Dome (mlp3), bits of JKRPG, and the entire Showcase forum, damnit!... Visit SWGalaxies.net for the latest Star Wars: Galaxies information!
******
I beat the internet. The last guy was hard.
2004-06-30, 11:15 AM #2
You mean:

Merge Sort Tree:
- Take a binary tree T
- Each node of T represents a recursive call of the
merge sort algorithm.

?

I would look at how Merge Sort splits the array/sequence

------------------
"Music is the universal language and the
dialect we speak in is Hip Hop!" - King Solomon
2004-06-30, 11:22 AM #3
A merge sort tree is something like this:

Code:
	
	{ 85 24 63 45 17 31 96 50 }
           /                   \
    { 85 24 63 45 }     { 17 31 96 50 }
      /         \         /         \
  { 85 24 } { 63 45 } { 17 31 } { 96 50 }
    /   \     /   \     /   \     /   \
  {85} {24} {63} {45} {17} {31} {96} {50}


And then sorts on the way back up. It's recursive.

------------------
J-uztyn
Taking credit for: Canyon Stream, Higher Ground, The Space Between, Death's Dome (mlp3), bits of JKRPG, and the entire Showcase forum, damnit!... Visit SWGalaxies.net for the latest Star Wars: Galaxies information!

[This message has been edited by Juztyn (edited June 30, 2004).]
******
I beat the internet. The last guy was hard.
2004-06-30, 11:24 AM #4
2?

------------------
<S51> Give a man a sandwich and you'll feed him for an hour, teach him to make a sandwich and he'll get pissed, hit you and tell you to make him another sandwich.
Holy soap opera Batman. - FGR
DARWIN WILL PREVENT THE DOWNFALL OF OUR RACE. - Rob
Free Jin!
2004-06-30, 11:30 AM #5
Code:
	
	             n
               /             \
          n/2                   n/2
      /         \         /         \
     n/4        n/4      n/4         n/4
    /   \     /   \     /   \     /   \
  ...
   1    1     1    1     1   1    1    1


------------------
"Music is the universal language and the
dialect we speak in is Hip Hop!" - King Solomon
2004-06-30, 11:32 AM #6
I just threw the proof for a perfect binary tree's height at it. Should be enough. Thx guys.

------------------
Juztyn
Taking credit for: Canyon Stream, Higher Ground, The Space Between, Death's Dome (mlp3), bits of JKRPG, and the entire Showcase forum, damnit!... Visit SWGalaxies.net for the latest Star Wars: Galaxies information!
******
I beat the internet. The last guy was hard.
2004-06-30, 12:22 PM #7
it should be, it's the same proof.

log with base 2 because each tree has 2 subtrees.
Detty. Professional Expert.
Flickr Twitter
2004-06-30, 12:38 PM #8
I have a different strategy: I'll wait until you do all the work, and then I'll copy it, modify it just a little bit to avoid lawsuits, slap some eye candy on it to hide the flaws created during the modification process, and sell it. I can be just like Microsoft. [http://forums.massassi.net/html/tongue.gif]



------------------
The University of North Carolina has finally found a network server that, although missing for four years, hasn't missed a packet in all that time. Try as they might, university administrators couldn't find the server. Working with Novell Inc., IT workers tracked it down by meticulously following cable until they literally ran into a wall. The server had been mistakenly sealed behind drywall by maintenance workers.
2004-07-01, 3:46 PM #9
oh im sorry, the correct answer was pie

------------------
*landfish 'splodes*
7 of 14
free(jin);
tofu sucks
2004-07-02, 5:52 AM #10
Oooooh I like pie... specially with ice cream.

------------------
They call him El Diablo... *whip crack*
They call him El Diablo... *whip crack*
2004-07-02, 5:57 AM #11
Pie's just not the same without cheese. [http://forums.massassi.net/html/frown.gif]
Catloaf, meet mouseloaf.
My music

↑ Up to the top!