I'm not quite sure but don't you have to compare the previous card in the array and then the pre-previous and so on till the card you compare with is smaller than yours?
You always start at the beginning of your array. I think the original Insertion sort is written this way because it's an efficient algorithm for partial prearranged arrays
Thanks, yes I learned these algorithms in my first year computer science course - although I've never really had to code up a sorting algorithm (I've always been able to use an existing library). However I do believe that it is important to know how these things work - and their performance - which I haven't talked much about yet.
I do spend a fair amount of time coding - mostly developing applications for the Real Estate industry.
Very helpful, thanks for the effort, is it possible for you to show us Merge Sort or even Selection Sort with your pack of spades? ... or maybe even Quick Sort (but that will be asking too much)?
I need to borrow a video camera again to make more. Quick Sort is actually fairly easy to do with cards (I think there is already a non-English youtube video). I'll get around to it eventually.
2 people took an arrow in the brain.
Diamorotic 1 month ago
love your work! !!
if only lecturers would provide such proper examples
and not just read out their pre determined slides.
Bowser3366 2 months ago
did you ever consider becoming a magician?
podypodpod 8 months ago
This visual way of tutorial that you have done has really explained it better to me than the other videos i have seen on insertion sort. Thanks man
lightswitchlarry 8 months ago
heyy, awesome job, u saved my assssss
bunnythegreat216 11 months ago
This has been flagged as spam show
gosshhh!! would you mind talking a bit clearly???
lia86x 1 year ago
gosshhh!! would you mind talking a bit clearly???
lia86x 1 year ago
Can you show how to calculate the find the O(f(n))[order of the Sorting algorithms]. Thanks a ton..!!! The calculation of the Time Complexity..
viczsaurav 1 year ago
Can you show how to calculate the find the O(f(n))[order of the Sorting algorithms]. Thanks a ton..!!!
viczsaurav 1 year ago
NO ENTIENDO NADA
ES UQE SOY ESPAÑOL
JEJE
drive2468 1 year ago
This has been flagged as spam show
My name is Mike from LA Although there busizz4me.info
consuelahuttonc 1 year ago
clear and conscise
hellraidzor 1 year ago
Gr8 Video!! It does a good job at showing the comparisons required for each swap in the algorithm. Nice work
Mesmereyes 1 year ago
Thanks for the tutorial, but I had trouble hearing you at times.
MrLemonyFresh 1 year ago
thanks for the video, I wish my teacher would explain things that way :( !
oOPrincessMoonieOo 1 year ago
thnx man, u really helped me :))
MrLYN274 1 year ago
hey just wanted to say thank you for taking your time to make this! very useful :)
KieranLaff 1 year ago
Thank you!
SerGrimson 1 year ago
This is not how the comparison works in the insertion sort. it should be from right to left.
xgzipx 1 year ago
Thanks so much. I'm competing in the Canadian Computing Competition tomorrow and ur algorithms really helped me out. :)
LuvLP4ever 1 year ago
thanks for the help man - helps for my exam
Laucheehung 2 years ago
thanks alister christie!
Jinx8602 2 years ago
oh wow a video was so much easier to understand than trying to read it online. thanks!
smeezh 2 years ago
Very nice video. Do you think merge sort would be too hard to explain?
zeekyboogydude 2 years ago
I mostly made a merge sort video, but didn't like it. I'll have another try soon - merge sort is actually really easy to explain.
codegearguru 2 years ago
the only thing better about Insertion is space complexity.. slighty
Rafdaganga 2 years ago
thanks alot!!
5 stars!!!
dewi20 2 years ago
hero of explanation
tylerdurdenbp 2 years ago
Nice, I now fully understand it.
Thank you soo much :)
Ciwan2 2 years ago 7
I'm not quite sure but don't you have to compare the previous card in the array and then the pre-previous and so on till the card you compare with is smaller than yours?
You always start at the beginning of your array. I think the original Insertion sort is written this way because it's an efficient algorithm for partial prearranged arrays
iPrometheusQ 2 years ago
thanks man
judastrii 2 years ago
Thank you so much. Your guide has been very useful. Congratulations!
ingrambo30 3 years ago 5
Nice tuts, Is this learned in Computer Science?
And do you code much, my thoughts are that they teach you the algorithm and you produce it in code (language of your choice), am I correct?
BDCTA 3 years ago
Thanks, yes I learned these algorithms in my first year computer science course - although I've never really had to code up a sorting algorithm (I've always been able to use an existing library). However I do believe that it is important to know how these things work - and their performance - which I haven't talked much about yet.
I do spend a fair amount of time coding - mostly developing applications for the Real Estate industry.
codegearguru 3 years ago
Ok :)
You code Delphi or something?
I think I've seen your tuts;
I'm currently learning C++, looking around but can't find any local colleges that teach computer science :(
BDCTA 3 years ago
thanks!!!
obituary123 3 years ago
cheers 4 the vid! exam tmrw :) did u do 220 at AKL uni?>
WilliamNz123 3 years ago
No I studied at Victoria in Wellington.
codegearguru 3 years ago
@codegearguru I was about to ask if you were from NZ but now I see you studied where I am currently studying haha
Mitsimad 5 months ago
Very helpful, thanks for the effort, is it possible for you to show us Merge Sort or even Selection Sort with your pack of spades? ... or maybe even Quick Sort (but that will be asking too much)?
exosfear512 3 years ago
I need to borrow a video camera again to make more. Quick Sort is actually fairly easy to do with cards (I think there is already a non-English youtube video). I'll get around to it eventually.
codegearguru 3 years ago
THANKS,I LOVE YOUR LESSON VERY MUCH~
lounigccman 3 years ago
I recognize the tell-tale punch hole in the middle of those cards. Looks like someone's been hanging out at the Sky Casino ;-)
xazzy17 3 years ago
Yes - well spotted!
codegearguru 3 years ago