Discussion Board
Go to the previous messageThere are no next messages
Current Forum: 15-211 Main Forum
Date: Mon Dec 17 2001 10:35 pm
Author: White, David <white3@andrew.cmu.edu>
Subject: Re: BIG O QUESTION

Thats true. Take for instance sorting. Mergesort has
a worst case of O(NlogN), but in practice runs about O(NlogN),
while quicksort has a worst case of O(N^2) and in practice runs about O(NlogN) but it is very optimized and will beat mergesort most of the time, hence most people use quicksort...

Right?
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
BIG O QUESTION      Lee, Charles C.      Mon Dec 17 2001 10:24 pm       
Re: BIG O QUESTION      White, David      Mon Dec 17 2001 10:35 pm       

Back to previous screen