I know that heap sort,quick sort and merg sort are the faster sorting algoritms than the bubble sort,selection sort,shell sort and selection sort.
I got an idea,in which situation we can use bubble sort(use when we have to 100 items: bubble sort is effective),shel l sort is effective when one has to sort near abt 5000 items..selectio n sort is effective for sorting 1000 items...and more than 1000 and less than 5000 items if u have to sort use insertion sorting.
Now my question is heap sort,merg sort and quick sort are used to sort millions of items...hence Can anbody pls tel me....from these 3 sorts which sort to use when?
I got an idea,in which situation we can use bubble sort(use when we have to 100 items: bubble sort is effective),shel l sort is effective when one has to sort near abt 5000 items..selectio n sort is effective for sorting 1000 items...and more than 1000 and less than 5000 items if u have to sort use insertion sorting.
Now my question is heap sort,merg sort and quick sort are used to sort millions of items...hence Can anbody pls tel me....from these 3 sorts which sort to use when?
Comment