Click here to Skip to main content
15,913,685 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
OriginalGriff14-Aug-15 19:44
mveOriginalGriff14-Aug-15 19:44 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
CDP180214-Aug-15 20:08
CDP180214-Aug-15 20:08 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
thewazz17-Aug-15 7:43
professionalthewazz17-Aug-15 7:43 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
john morrison leon14-Aug-15 22:34
john morrison leon14-Aug-15 22:34 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
Amarnath S14-Aug-15 23:08
professionalAmarnath S14-Aug-15 23:08 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
newton.saber15-Aug-15 4:10
newton.saber15-Aug-15 4:10 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
harold aptroot15-Aug-15 7:38
harold aptroot15-Aug-15 7:38 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
irneb17-Aug-15 2:19
irneb17-Aug-15 2:19 
Of course the way BS (don't excuse that pun) uses to test if two items needs swapping is still the fastest way to test if a list is already sorted.

I can only think of one sort of scenario (other than very small lists/arrays where it may or may not perform faster than insertion sort): When sorting directly on a sequential streaming media (such as a tape drive) with too little RAM/Secondary (random access) storage to enable reading the entire contents at once.

swampwiz wrote:
So I wonder why is bubble sort even taught?
Mainly as a means to introduce the thought processes around algorithmic optimizations, not so much to teach "a sorting algorithm", but rather to teach how to recognise stuff such as O(N), O(log N), O(N logl N), O(N^2), etc... It's very simple to understand and implement, while some of the divide-n-conquer stuff is pretty complex (especially for beginners).
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
patbob17-Aug-15 6:06
patbob17-Aug-15 6:06 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
MrChug17-Aug-15 10:21
MrChug17-Aug-15 10:21 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
scoy17-Aug-15 11:44
scoy17-Aug-15 11:44 
GeneralRe: Is bubble sort only used for pedagogy or for extremely constrained program memory? Pin
jibalt18-Aug-15 0:05
jibalt18-Aug-15 0:05 
GeneralWhat is the difference between azure ml and a crystal ball and a random result generator? Pin
User 1106097914-Aug-15 6:59
User 1106097914-Aug-15 6:59 
GeneralRe: What is the difference between azure ml and a crystal ball and a random result generator? Pin
Slacker00714-Aug-15 9:14
professionalSlacker00714-Aug-15 9:14 
JokeRe: What is the difference between azure ml and a crystal ball and a random result generator? Pin
User 1106097914-Aug-15 9:44
User 1106097914-Aug-15 9:44 
GeneralRe: What is the difference between azure ml and a crystal ball and a random result generator? Pin
Slacker00714-Aug-15 9:49
professionalSlacker00714-Aug-15 9:49 
GeneralRe: What is the difference between azure ml and a crystal ball and a random result generator? Pin
Cornelius Henning14-Aug-15 11:11
professionalCornelius Henning14-Aug-15 11:11 
GeneralRe: What is the difference between azure ml and a crystal ball and a random result generator? Pin
User 1106097914-Aug-15 11:13
User 1106097914-Aug-15 11:13 
GeneralRe: What is the difference between azure ml and a crystal ball and a random result generator? Pin
swampwiz14-Aug-15 12:12
swampwiz14-Aug-15 12:12 
GeneralRe: What is the difference between azure ml and a crystal ball and a random result generator? Pin
PIEBALDconsult14-Aug-15 9:59
mvePIEBALDconsult14-Aug-15 9:59 
GeneralRe: What is the difference between azure ml and a crystal ball and a random result generator? Pin
User 1106097914-Aug-15 10:19
User 1106097914-Aug-15 10:19 
GeneralRe: What is the difference between azure ml and a crystal ball and a random result generator? Pin
Duncan Edwards Jones14-Aug-15 11:26
professionalDuncan Edwards Jones14-Aug-15 11:26 
GeneralRe: What is the difference between azure ml and a crystal ball and a random result generator? Pin
User 1106097914-Aug-15 11:35
User 1106097914-Aug-15 11:35 
NewsHey Martin and Vilmos Pin
Slacker00714-Aug-15 6:56
professionalSlacker00714-Aug-15 6:56 
GeneralRe: Hey Martin and Vilmos Pin
Colin Mullikin14-Aug-15 7:46
professionalColin Mullikin14-Aug-15 7:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.