Actually, if your list is close to being sorted, the bubble sort turns out to be quite efficient. I add a twist to my bubble sorts, first I sweep UP the list swapping, then I sweep DOWN the list swapping.
This really speeds it up... I'm sure someone is going to correct me and tell me the real name of this modified bubble sort.
Actually, that's a misconception. It depends if you start with array.length() and work your way down, or if you start at index 0 and work your way up. You have to adjust the less than and greater than with in the if...then statement for their respective "flavor". Hope this helps :D
There IS video's on all of the other sorts, AS well as coding, but this is the only one i'm bothering to upload :P It was for a programming competiton
Well the only full compiler I had at the time was Visual Basic 6. It sucked and it was ugly :P I recently got Visual Studio 9 2008 and things are looking alot better, I can't wait for this years competition. I'm thinking of doing it in C++ this time. There was quick, insertion, merge, and bubble sorts for this project. Basicly it went through basic coding and then showed a video illustrating the sort.
Quicksort forever !!!
slatz20 1 year ago
hi there !
anhvnsvns 1 year ago
cool
TechTradition 1 year ago
Dddddddeeeeeeeaaaaaaaddddddd account now.
robmikh 1 year ago
oh now i understand!
mogbasterd 1 year ago
What machine's making the music?
telperionflower 2 years ago
cool and funny
TheEarlOfDublin 2 years ago
thanksssss:))))
sisse54 2 years ago
Your vid is so helpful!
thanxxxxx a million!
agirlnamednene 2 years ago
Chocobo Bubbles!!!
DawnnieE 2 years ago 2
Maybe it's inefficient and almost entirely useless, but you can't really hate Bubblesort. It's got such an adorable name!
Mank25 2 years ago 13
Actually, if your list is close to being sorted, the bubble sort turns out to be quite efficient. I add a twist to my bubble sorts, first I sweep UP the list swapping, then I sweep DOWN the list swapping.
This really speeds it up... I'm sure someone is going to correct me and tell me the real name of this modified bubble sort.
SirCatpaw 2 years ago
@SirCatpaw
maybe it's a doubly bubble sort ^_^
:-p
yasuodances 1 year ago
@SirCatpaw Cocktail Sort.
Amishman35 1 year ago
@SirCatpaw Close: you're describing the bidirectional bubble sort :D
agentdarkboote 1 year ago
@agentdarkboote Of course! The bidirectional bubble sort! aka the Cocktail sort according to Wikipedia!
I guess one can improve by not comparing the last item placed in each direction.
SirCatpaw 3 months ago
it actually doesnt work like that, bubblesort sorts from right to left... you can check this on wikipedia :)
anyway thanks for the video, helped me a lot :D
XniX23 3 years ago
Actually, that's a misconception. It depends if you start with array.length() and work your way down, or if you start at index 0 and work your way up. You have to adjust the less than and greater than with in the if...then statement for their respective "flavor". Hope this helps :D
UltimaChaosVincent 3 years ago
if u adjust the if by switching greater than or less than.. doesnt that change from lets say, ascending order to descending for example? :)
and yes, it depends from where you start :$
XniX23 3 years ago
Thats the point? I'm confused by your comment, sorry. If you want to go from right to left and maintain the order you'd have to switch operators.
UltimaChaosVincent 2 years ago
Wow, that was effective I needed to review this for my class and this worked great. Also love Odeka ke Chocobo.
Kwiatekbe 3 years ago
Thank you <3
khayraB 3 years ago
Da habt ihr euch aber Mühe gegeben.
ChambersDrums 3 years ago
chocobo song
manvehe 3 years ago
this is so great ;) if anybody is asking me how to bubble sort, i start singing the chocobo song ^^
horst199 3 years ago 8
CHOCKOBO
DarkWarrier6 3 years ago
chocobooooooooooooo
ELkuken 3 years ago 2
thanks for the useful info, it helps to visualize the process done by bubble sort.
cronocopio 3 years ago 2
bubble sort is one of the worst sort method, and still is used very much in programming! nice video anyway :)
Oldsellerros 3 years ago
lol, agree'd. Yay for recursive quick sort :P Thanks for the comment! :)
UltimaChaosVincent 3 years ago
i agree, but its just the simplest to write or learn by programmers that are learning.
Rafdaganga 3 years ago
This comment has received too many negative votes show
WOW get good #mylevel... go awful coding
pudfaceaii 3 years ago
I'm not understanding your comment... there was no coding in this, just frames made in paint and FFVII music...
UltimaChaosVincent 3 years ago
your a nobody and your code is even worse.
uspm4a1 3 years ago
What code? It's Paint...
UltimaChaosVincent 3 years ago
not you, boy genious here who decided to insult your video.
uspm4a1 3 years ago
It's a good video idea, it shows only the movements of a bubble sort.
We need more clues about what is going on to understand why these two numbers switch place first, then these two, then these two...
I encourage you to make another one more complete, then explore other sorting like selection, merge, shell, heap, quick, radix, etc.
newcoleco 4 years ago
There IS video's on all of the other sorts, AS well as coding, but this is the only one i'm bothering to upload :P It was for a programming competiton
UltimaChaosVincent 4 years ago
A programming competition? that's cool.
Which language did you use?
Any other projects you did for this competition?
newcoleco 4 years ago
Well the only full compiler I had at the time was Visual Basic 6. It sucked and it was ugly :P I recently got Visual Studio 9 2008 and things are looking alot better, I can't wait for this years competition. I'm thinking of doing it in C++ this time. There was quick, insertion, merge, and bubble sorts for this project. Basicly it went through basic coding and then showed a video illustrating the sort.
UltimaChaosVincent 4 years ago
ok.
rllyfastturtle159310 4 years ago
wtf..........
Knarfmai 4 years ago