So in a min-heap sort basically the order in this example is row left to right then down a row starting at the left again. You put the card at the 'end' of the order at the empty space at the 'start' of the order, then swap it with the lowest available card that it is higher than. If it is lower than the cards on the second row than it is the lowest card and goes on the stack.
your heapsort is internally conflicted: when percolating down, you sometimes grab the largest, and sometimes the smallest. you should grab the smallest everytime.
@valdezmiguel2; why don't you reference me to the moment where you claim he swaps the "wrong" cards. I watched the video; the heap he maintains is a "min" heap.
@valdezmiguel2 I watched very intently, and assuming this is a min-heap, ace is 14, king 13, queen 12, jack 11, and numbers their respective representation; he made no mistakes in the swapping down or up. Would you kindly go die in a fire. You would be doing the world a favor.
hahahahaha...I don't know why but this funky weird music helped me focus and made me excited when I understood what was going on..I'll have to try studying to this stuff haha
Most irritating video..Where is ur voice??Its very hard for those who don't know the value of King,Queen and Jack. Make a video after viewing which there will be no questions about that topic in the viewers mind. thanx for ur effort.
Usually, King is higher than Queen, which is higher than Jack. Ace is more confusing, as its value changes a lot between games. I thought it would be 1, but it seems to be a high value in this demonstration.
haha music made me piss myself laughing
Necromania92 1 week ago
if you listen to this while you program, i have some serious concerns about what is being produced
kj369kj 3 weeks ago
I like how the top 2 comments are "horrible music" and "cool music!", music choice isn't as universal as this algorithm.
Fusereactor 3 weeks ago
great video! it helps me a lot !!! thanks
lopovM 3 weeks ago
at 2:22 I felt sick
elianerizk5 1 month ago
music is so distracting, would be good if he annotated it at 1:07 to say he's removing elements from the heap.
levipl 1 month ago
why is "1" the biggest card?
speedlly 2 months ago
Comment removed
levipl 1 month ago
@speedlly think of an Ace high straight, I guess
levipl 1 month ago
Very helpful, especially since my final is today
chasman14 2 months ago
This stupid indian-like music... Ughz... Disliked the video just because of it..,
HardlyAChallenge 2 months ago
LOL music is funny as hell HAHA
kznw 3 months ago
HORRRIBLLLLLLLEEEEEEEEEE SONG..:-(.
singhdolly90 3 months ago
thanks man, you're a life saver!!!
MrNomad1984 5 months ago 2
This has been flagged as spam show
Great video, but hate the music.
starefossen 5 months ago
A is greater than k?
for me, A is the first card...
OraculoSabeTudo 6 months ago 2
epic music =))
Alexhoanghtd 7 months ago
disgusting music
fataxel 8 months ago
Hehe...in just 3 hours I am going to sit my algorithms exam. This might possibly appear there. Thanks :-)
Siliarus 8 months ago
this is relevant to my uni exam that I have in less than 12 hours, if heap sort is on it and I pass, I will buy you a beer.
nekotali 8 months ago
So in a min-heap sort basically the order in this example is row left to right then down a row starting at the left again. You put the card at the 'end' of the order at the empty space at the 'start' of the order, then swap it with the lowest available card that it is higher than. If it is lower than the cards on the second row than it is the lowest card and goes on the stack.
gagemonster555 8 months ago
Isn't a heap supposed to always have the greatest value in the root? o_O
dandymcgee 11 months ago 2
@dandymcgee It depends on how you set up the heap, he has implemented a min-heap as opposed to a max heap, which you are talking about.
PreImmortal 10 months ago
@PreImmortal Ah okay, thanks for clarifying.
dandymcgee 9 months ago
your heapsort is internally conflicted: when percolating down, you sometimes grab the largest, and sometimes the smallest. you should grab the smallest everytime.
valdezmiguel2 11 months ago
@valdezmiguel2 No he doesn't. Ace is treated as a high card.
TheErroneousOne 9 months ago
@valdezmiguel2 No he doesn't. Ace is treated as a high card. They wouldn't have been sorted if he didn't always choose the right card.
TheErroneousOne 9 months ago
@TheErroneousOne no, you are blind or retarded. I cannot tell which. just look for youself, you ignorant fool.
valdezmiguel2 9 months ago
@valdezmiguel2; why don't you reference me to the moment where you claim he swaps the "wrong" cards. I watched the video; the heap he maintains is a "min" heap.
TheErroneousOne 9 months ago
@valdezmiguel2 I watched very intently, and assuming this is a min-heap, ace is 14, king 13, queen 12, jack 11, and numbers their respective representation; he made no mistakes in the swapping down or up. Would you kindly go die in a fire. You would be doing the world a favor.
gagemonster555 8 months ago
well using cards to show it is brilliant... but what's with the music....
reitube2 1 year ago
I replayed it volume *off*
sjabchicosci 1 year ago
Verrrry nice. Thanks for the visual!
IntarwebUser 1 year ago
This has been flagged as spam show
@Shishberg actually the song's not FireCool but Kur-kur, at least in jamendo's collection
aliendesaster 1 year ago
@Shishberg actually the song's not FireCool but Kur-kur, at least in jamendo's collection
aliendesaster 1 year ago
cute algorithm.
pimpolinka69 1 year ago
What a freak!
Naitmeir 1 year ago 2
THANKS MAN you saved me
saudalam777 1 year ago
This is the kind of music that plays in my head while doing Java homework
inski22 1 year ago 4
epic music
opiemonster 1 year ago
the sound effect is soooo cute :)) hahaha.
jezzajoyce 1 year ago
hahahahaha...I don't know why but this funky weird music helped me focus and made me excited when I understood what was going on..I'll have to try studying to this stuff haha
richard9x 1 year ago 4
Ace was not in the correct position initially...
manojsam79 1 year ago
Simple visual explanation. Even i understood.
Zodarr 1 year ago
I didn't like the music at all, but the demonstration made the algorithm clear to me, thanks!
dirkovic2112 1 year ago
horrible music but fully illustrates the heapify-up then heapify-down process required to do heapsort. Nice job!
krisdestruction 1 year ago
cool music!
Pagai 1 year ago 78
thanks.. its very nice presentation.. :)
thanks a lot..
nice music :) hahahha
rpdhalwani 1 year ago
great explanation, the only clear enogu one, thanks, now off to my algorithm exam ;)
seebbix 1 year ago
music sooo annoying !! but demostration is great.
cucicov 1 year ago
great video!! thanks
sm0k1e 1 year ago
This is not music but noise
roeiaz1 1 year ago
I liked this
senos64 1 year ago
horrible music
homerojc 2 years ago 147
great dem ... jack<queen<king<ace in here... ace is the biggest value...
Biguy08 2 years ago
quite funny video...
mohitsingh009 2 years ago
Most irritating video..Where is ur voice??Its very hard for those who don't know the value of King,Queen and Jack. Make a video after viewing which there will be no questions about that topic in the viewers mind. thanx for ur effort.
arnobart2009 2 years ago
Usually, King is higher than Queen, which is higher than Jack. Ace is more confusing, as its value changes a lot between games. I thought it would be 1, but it seems to be a high value in this demonstration.
CzarKirk 2 years ago 3
@CzarKirk I agree. I didn't watch the whole video but it was well made. I think Letter cards should not have been included for clarity.
sylversphere 1 year ago
Thanks
mohemedamin 2 years ago
thx man
kowtnaak 2 years ago