Due to its simplicity, bubble sort is often used to introduce the concept of an algorithm, or a sorting algorithm, to introductory computer science students. However, some researchers such as Owen Astrachan have gone to great lengths to disparage bubble sort and its continued popularity in computer science education, recommending that it no longer even be taught.
Name:
Anonymous2015-02-13 14:13
But bubble sort is the right thing to do in small cases.
Name:
Anonymous2015-02-13 15:50
>>2 The crap you implement with GOTO doesn't count as bubble sort.
Name:
Anonymous2015-02-13 19:20
What a cocksucker. Even Dickstra wasn't that arrogant. Apparently students are so fucking stupid that they can't be taught the difference between good ideas, bad ideas, and ideas that are only useful sometimes. Instead, since he is so smart that he can objectively come to the truth, he has decided to censor it and hope it goes away. What a pathetically paternalistic and social constructivist bullshit outlook. He should keep his fucking mouth shut.
His next move should be banning factorial, because it is too simple.
Name:
Anonymous2015-02-14 4:38
When n is less than 1 it's beneficial to increase time complexity as much as possible. I suggest defining input as half an array of length m; therefore n = 1/2 as input is only 1/2 of an array. Increasing time complexity is easy, just add nested loops, or if you're feeling fancy functions with loops that recursively call themselves.
Here, a more efficient hello world: #include<stdio.h> #include<stdlib.h>
Bubble sort is asymptotically equivalent in running time to insertion sort in the worst case, but the two algorithms differ greatly in the number of swaps necessary. Experimental results such as those of Astrachan have also shown that insertion sort performs considerably better even on random lists. For these reasons many modern algorithm textbooks avoid using the bubble sort algorithm in favor of insertion sort.
Name:
Anonymous2015-02-14 23:31
Could a golden retriever maul Lennart Poettering to death without contracting AIDS?
Name:
Anonymous2015-02-14 23:40
>>14 This is false, it equals the size of a char pointer. Other pointers may have different sizes.
Name:
Anonymous2015-02-14 23:45
>>19 I don't think human AIDS can infect dogs, so probably. Why? Are you a golden retriever?
Speaking of AIDS, did you hear that the gays are going to be dying a lot faster now? There's a new AIDS in town, and it's began to spread to the USA mainland.