GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 25-Jan-2005, 08:15
the_crazyman the_crazyman is offline
Awaiting Email Confirmation
 
Join Date: Apr 2004
Posts: 11
the_crazyman is on a distinguished road
Question

Bubble/Secltion sorts


HI,

can I mither again, for a few opinions?
Bubble-Sort v Selection Sort.

"Bubblesort is adaptive, Selection is Non-Adaptive."


Am I on the right track by saying Bubble is adaptive as it can break out of the loop if no exchanges are made at at point ion the loop
whereas Selection sort has to run through N-1 and cannot break out if no swap is made

If this is worng, can anyone expand in plain old english.


Also which is most effective/effecient?

I'm thinkign selection is more effecient
I have these points upto now.

Selection:
Despite it’s simplicity, selection sort outperforms more sophisticated methods in one important application:
It is THE choice method for sorting files with HUGE ITEMS and SMALL KEYS.
For such applications, the cost of moving the data dominates the cost of making comparisons and no algorithm can sort a file with
substantially less data movement than selection sort.

These are my revision notes. Hate exams
 
 

Recent GIDBlogProblems with the Navy (Officers) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:49.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.