Coding Challenge

  Рет қаралды 441,839

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 539
@arkamitra4345
@arkamitra4345 5 жыл бұрын
You can use bully sort: Choose the first element. Delete the rest of the elements. Your array is now sorted.
@mistermixter4123
@mistermixter4123 5 жыл бұрын
Lol
@yangyang6140
@yangyang6140 5 жыл бұрын
Arka Mitra Brutal, I like it.
@ashishthapamagar9166
@ashishthapamagar9166 5 жыл бұрын
You're genius man.😂😂
@EnteiFire4
@EnteiFire4 5 жыл бұрын
Similarly, there's Stalin sort: Remove all the elements smaller that the last "kept" value. For example : 5, 3, 8, 9, 1, 2, 10 becomes 5, 8, 9, 10.
@NachoMan154
@NachoMan154 5 жыл бұрын
Communism sort is: Choose the least element, assign the value to all other elements. The Array is now Sorted. xD
@kyraaa__
@kyraaa__ 5 жыл бұрын
Thanos sort: delete half and sort the rest! It’s twice as effective
@sortof3337
@sortof3337 4 жыл бұрын
ha ha ha. I am gonna try and implement this.
@tobiasgorgen7592
@tobiasgorgen7592 4 жыл бұрын
def ThanosSort(list): { while not list.isSorted() { cullHalve(list) } return }
@dairop3220
@dairop3220 4 жыл бұрын
Well i fact sorting isn't linear so it's more than twice effective :)
@shanewalsch
@shanewalsch 3 жыл бұрын
And use recursion next, so that the complexity will be O(log n)
@awsomeguy563
@awsomeguy563 6 жыл бұрын
HOLY CRAP! HE'S FINALLY DOING SORTING ALGORITHMS
@yesveryprofesionalnameyes6055
@yesveryprofesionalnameyes6055 5 жыл бұрын
your name is "not really?" so it kindea breakes the point
@PsychoticBufoon
@PsychoticBufoon 2 жыл бұрын
I didn’t understand a lick of the computer science, but I was entertained throughout
@SriNiVi
@SriNiVi 5 жыл бұрын
As a software developer I just love his thinking approach to an Algorithm. Morover just love to see how happy he is while doing this and how much he's enjoying this.. Big fan.
@e4r281
@e4r281 6 жыл бұрын
I wish I could bubble sort the stuff in my room.
@aggbak1
@aggbak1 6 жыл бұрын
jordan peterson approves
@giorgosd3624
@giorgosd3624 6 жыл бұрын
Me too, i can only bubble sort a coca-cola
@stepan981
@stepan981 6 жыл бұрын
Eh... Kinda slow.
@nevermind1O844
@nevermind1O844 6 жыл бұрын
pro tip: lock that door, find a new room, forget about the old one... maybe garbage collection kicks in
@sonicfon
@sonicfon 4 жыл бұрын
quick sort for you. Or if you bored, gravity sort it.
@DigitalNerd
@DigitalNerd 2 жыл бұрын
Dude just did an entire weeks worth of my programming homework in one sitting, added great commentary and instruction the entire time, recorded a fun video and I was still completely more interested in this than doing my own homework. Good shit
@dielfonelletab8711
@dielfonelletab8711 6 жыл бұрын
😮 For the first time ever I did something before Dan inspired me to. I feel like a true programmer now!
@niklasaichinger8281
@niklasaichinger8281 6 жыл бұрын
m2
@Triavanicus
@Triavanicus 6 жыл бұрын
Haha, I did this 2 weeks ago.
@ravencircles4611
@ravencircles4611 6 жыл бұрын
Did it on a 3ds last year haha these are fun
@ekarademir
@ekarademir 6 жыл бұрын
Daniel, you made me smile! Thanks for all your efforts.
@Louis_Marcotte
@Louis_Marcotte Жыл бұрын
I've been watching your challenge videos for a while, watching until I understand what it is, actually researching and coding them and then looking at what you did. Pretty fun way to spend/procrastinate through a couple hours
@rikkiegieler5638
@rikkiegieler5638 6 жыл бұрын
I suggest: Merge Sort Heap sort Bogo sort and BogoBogo sort ;-) Sleep sort Gravity/Bead sort Comb sort Slow sort Insertion sort
@giorgosd3624
@giorgosd3624 6 жыл бұрын
Rikkie Gieler Dont forget Miracle sort
@Triavanicus
@Triavanicus 6 жыл бұрын
Why not Radix sort as well
@MasterHigure
@MasterHigure 6 жыл бұрын
Don't forget Intelligent Design sort.
@mikeberezhkov7810
@mikeberezhkov7810 6 жыл бұрын
sorting with ML. Why not to try?
@blasttrash
@blasttrash 6 жыл бұрын
And then visualize all of them in a parallel sort way as well. like simulating multiple processors and what not.
@kostasgeorgiou2417
@kostasgeorgiou2417 6 жыл бұрын
📂Documents └📁Videos └📁 The Coding Train └📁 Bad Videos └⚠️ This folder is empty
@bailey125
@bailey125 6 жыл бұрын
362 likes and 0 comments?
@JohnDoe-ni9zm
@JohnDoe-ni9zm 6 жыл бұрын
I'm doing my part!
@frenzy9741
@frenzy9741 5 жыл бұрын
Let's fill this section with 500 comments!!! And also subscribe move 5% of Pews subs to the coding train, please, someone!
@jason_shepherd
@jason_shepherd 5 жыл бұрын
not gonna lie ya had me in the first half
@hwinangkoso
@hwinangkoso 5 жыл бұрын
I think you should sort out your folders
@kedarkodgire9506
@kedarkodgire9506 5 жыл бұрын
My goodness , each video of yours is mesmerizing. I kinda keep watching it till the end even if i don't understand some stuff in between. **most important note is I never get bored of your videos 😅** You're amazing!!!!!
@glendale87
@glendale87 6 жыл бұрын
Sorting visualizations are so relaxing! Awesome vid :)
@goldenfreddy8649
@goldenfreddy8649 6 жыл бұрын
I took a basic computer science class because I needed the credit. We actually used a couple of your videos as references. Now I have a somewhat newfound interest in computer science once again, and these videos are actually pretty intriguing.
@LillyCode
@LillyCode 4 жыл бұрын
I just love your energy, from a 31 year old, 3 year professional coder, going over these basics with that sun in the background and you dancing. Kalabunga what fun learning. Annnd pretty sure I won't have to go over this basic again as you have imprinted it..... so therefore, on to allll your other videos to get that same level of imprint. THANK YOU. I am subscribed and liked and shall continue to like, great great educational, so fun, content. The dances just get me and nervous hahaha been at this for 3.5 hours now, thank you for your time. Super.
@ElZafro_
@ElZafro_ 6 жыл бұрын
The animation using the noise blew my mind. So cool!
@Otakutaru
@Otakutaru 6 жыл бұрын
I LOVE you! Sorting algorithms are too much fun
@BUZZYBG
@BUZZYBG 4 жыл бұрын
You make coding much more fun!! Keep being yourself!
@poof65
@poof65 6 жыл бұрын
This is really a subject that I find interesting. When I was younger I loved to do sort visualizations (and fractals) . You gave me the motivation to continue :) Apart from that, you're very energetic, funny and passionated, keep up the good work
@anshulmanapure1980
@anshulmanapure1980 2 жыл бұрын
In which language you used to do visualizations?
@suzumow
@suzumow Жыл бұрын
You are amazing. That was hella fun! Thank you very much.
@ipoop4359
@ipoop4359 5 жыл бұрын
YOU’RE THE BEST TEACHERRR PERIODTTTT
@NachoMan154
@NachoMan154 5 жыл бұрын
Here is my Version in p5.js: editor.p5js.org/NachoMan/sketches/3dCeFi1_ Im especially proud of the "clean" shuffle algorithm i wrote and don´t really understand by myself but it works great. xD
@mitalisharma440
@mitalisharma440 4 жыл бұрын
these are so cool. like the energy is contagious and the teachin is so goood. thenkssssssss
@adibahmed10
@adibahmed10 4 жыл бұрын
Visual sorting algorithms are like crack for my OCD. I love it!
@DavidStr98
@DavidStr98 6 жыл бұрын
the merge sort looks really incredible
@user-yq8xh
@user-yq8xh 6 жыл бұрын
Your videos are awesome, I have learned so much by watching them! I would love to see a videos series on assembler programming. I did not understand this stuff till now, but I know if you were my teacher I definitely would. :-)
@ABaumstumpf
@ABaumstumpf 6 жыл бұрын
It is nice how the simple lines at 5:25 show the problem with the used "Random" function of java - for most applications it is fine, but the numbers do exhibit a pattern.
@Cool_Story_Bruh
@Cool_Story_Bruh 5 жыл бұрын
Congratulations, you made me want to learn how to code.
@kayleeemantsal358
@kayleeemantsal358 4 жыл бұрын
no clue about any of this stuff, but i love your personality so i watch anyway, youre awesome
@WildAnimalChannel
@WildAnimalChannel 6 жыл бұрын
I like watching these videos. It's relaxing.
@mrbrown6421
@mrbrown6421 3 жыл бұрын
Thank you sir, greatly enjoyed. There was a time I wrote code just like that... in machine code, before there was C compiler. More addicting than games, because there were no games...long into the dark and tired night. No source control, no internet. I greatly miss it. 11.27.21
@nicholas_scott
@nicholas_scott 6 жыл бұрын
Loved this. Takes me back to college. I think every freshman has to make a visual bubble sort so the prof can detail how ineffecient it is
@DSan96
@DSan96 5 жыл бұрын
Actually it grows polynomially and not exponentially since O(n^2) < O(2^n). For instance, in the case of n=6 as in your example, a polynomial growth implies 36 computations, while an exponential growth 64. Just as a reminder (from biggest to smallest) - Factorial O(n!) - Exponential O(a^n) for a fixed - Polynomial O(n^a) for a fixed - O(n log n) - Linear O(n) - Logarithmic O(log n) - Constant O(a) for a fixed
@euclid9492
@euclid9492 4 жыл бұрын
ehud kotegaro O(n^n) grows even faster than O(n!).
@spacechicken6316
@spacechicken6316 4 жыл бұрын
@ehud kotegaro not helpful
@deepakpandey9406
@deepakpandey9406 5 жыл бұрын
This guy is crazy but one of the best tutor 😎
@junaidchoudhary9110
@junaidchoudhary9110 6 жыл бұрын
09:23 that jump though, it feels so relatable..lol
@frenzy9741
@frenzy9741 5 жыл бұрын
El julioprofe de la programacion
@provolke
@provolke 6 жыл бұрын
You should do a soduko solver! Ive been trying to make one thats a 3x3 for awhile. I wanna try to do it very eligantly.
@amrsaber5457
@amrsaber5457 6 жыл бұрын
It gets solved fairly efficiently by backtracking, you should try that.
@alcxander
@alcxander 5 жыл бұрын
@@amrsaber5457 whats backtracking in this context?
@TheFrankvHoof
@TheFrankvHoof 5 жыл бұрын
@@alcxander try m.kzbin.info/www/bejne/l6auZIOJj9ScmsU
@BenMcHone
@BenMcHone 2 жыл бұрын
@@alcxander Essentially you fill in any number that will currently work in a cell and assume that it's correct. Then you keep filling out the board until you fail, take a step back, try a different number, repeat. You can backtrack all the way to cell #1 if you are unlucky, but this is a slightly more elegant brute force.
@jeeaile5835
@jeeaile5835 6 жыл бұрын
Awesome video from France !
@fabu4792
@fabu4792 6 жыл бұрын
BON JOOR MISS SURE. COMA SA VA!
@marowakcity3727
@marowakcity3727 2 жыл бұрын
“Bubble sort is probably the least efficient sorting algorithm” Bogosort has entered the chat
@yesveryprofesionalnameyes6055
@yesveryprofesionalnameyes6055 5 жыл бұрын
New sorting algorithm >> DERP SORT Sets a random number to the begining and if it is the smallest keep it and remove it from the list, else get a new random number from the list and keep the old one in the list. Mindblown
@balla2172
@balla2172 6 жыл бұрын
Man I wish I knew coding/programming has as good as you. I'm trying to teach myself python now. I hope to get to this level some day
@dfordemo981
@dfordemo981 5 жыл бұрын
making videos super interesting, cool guy, we really had enjoyed your videos.
@MarkoFire123
@MarkoFire123 6 жыл бұрын
Queen of sorting!
@faville
@faville 2 жыл бұрын
I don't know what the hell is going on here, but it's cool to see what goes on behind those neat sorting animations that keep popping up in my feed. I never made it past the first couple of Hour of Code levels.
@10tens5
@10tens5 6 жыл бұрын
I dont even know what's happening but this amazes me!
@haythamkenway8343
@haythamkenway8343 4 жыл бұрын
This guy is a legend.
@nithinsravan596
@nithinsravan596 6 жыл бұрын
Awesome!!! Man love your channel 🔥😁
@canaDavid1
@canaDavid1 6 жыл бұрын
The most (and kind of least) efficient sorting algorithim is the random sort; you randomly arrange the numbers, and check if it's correct.
@canaDavid1
@canaDavid1 5 жыл бұрын
And i think it is O(n!)...
@DevinTyler_2
@DevinTyler_2 6 жыл бұрын
YESSSS!!!!! Visualize ALL OF THE SORTS!
@陈瀚龙
@陈瀚龙 6 жыл бұрын
Insertion, Merge, GO GO GO!
@Kiotiify
@Kiotiify 6 жыл бұрын
kzbin.info/www/bejne/iXvadqp3asyCoa8m36s Enjoy this clip from Sorting out Sorting....
6 жыл бұрын
and i thought sorting algos would be boring. but with these visualizations?! Damn, Imagination is the limit!
@beatalert123
@beatalert123 5 жыл бұрын
Wow.... I have never ever seen someone using processing other than using it while programming an Arduino :D Took me back to college :D
@isthisajojoreference7763
@isthisajojoreference7763 4 жыл бұрын
What's this treasure I've stumbled upon
@undefined6947
@undefined6947 3 жыл бұрын
The least efficient sorting algorithm as far as I know is not bubble sort, it's random sort. This randomizes the order of the array, checks if it's in order, if not then it randomizes it again. This method is n! or n factorial, which is much more than n². 7! for example would be 1*2*3*4*5*6*7 which is 5,040, whereas 8! is 40,320. An array of 8 needs an average of 40,320 operations to sort... Crazy. There is basically no reason to do this except fun as far as I know.
@prakharpandey2392
@prakharpandey2392 6 жыл бұрын
Hey Dan I'm almost selected for the National level Coding Championship. 😍😍 All thanks to you and my school teacher😍
@Khokhar1967
@Khokhar1967 5 жыл бұрын
are you into compettitive programming?
@alexmcd378
@alexmcd378 Ай бұрын
Should do counting sort. That one got me my job at Microsoft, or helped anyway. Giving them order N when they expected N log N won some points 😅
@tanyastaneva1500
@tanyastaneva1500 6 жыл бұрын
Please do the radix sort :)
@Morpheus396
@Morpheus396 6 жыл бұрын
Oh how I wish this was available when I did sorting algorithms last year! Great vid. *Ps I'm a proud owner of a copy The Nature Of Code :)
@addyad_yt
@addyad_yt 3 жыл бұрын
I don't even know what is processing programming language is but I see his videos for months now to understand the logic then I'm trying recreate it in MATLAB.
@JimThomson-x3r
@JimThomson-x3r Жыл бұрын
A tip, each subsequent pass only needs to traverse until the last swap, not until the decrementing index. Also, you will know you are at the end if a pass did no swaps.
@rosslahive
@rosslahive 5 жыл бұрын
How did I miss this one? Thanks for the video Dan
@UnrealOG137
@UnrealOG137 4 жыл бұрын
Stalin sort: Go through the list, and simply delete elements which are out of order. Your array is now sorted.
@lupinedreamexpress
@lupinedreamexpress 5 жыл бұрын
3:38 correction not just how long it performs but how many accesses, comparisons, and where the data is access plays a part for one reason: storage media. Rotational drives like algorithms that dont have to move the spindle around the surface constantly or that access data sequentially. Hybrid drives love algorithms that use the beginning of the set as a temporary storage space (solid state occupies the first 10-20% of the drive), NAND and VNAND love algorithms that break themselves up into evenly spaced blocks (blocks of data). Sometimes it's not exactly how long it takes to complete a sort, minimizing damage to your storage media matters at the data center which is how and why many of these sorting algorithms came to be in the computer science world. Hundreds of trillions of disk accesses matter to drive life over time. Big databases enjoy the reliability and benefit of a smartly chosen sorting alogirhtm. FYI the fastest in volatile memory (RAM) for those concerned is pigeonhole. 4000 accesses and 0 comparisons. If you have a mechanical drive that's new, choose Radix (all base forms of RADIX produce sequential, rotational movement during access times when graphed during sorting) , if you've a hybrid drive for your data set, choose WikiSort (first 10% of the set is used as the comparitive area) . Proper choices will preserve the life of your drive.
@aissagasmi4144
@aissagasmi4144 6 жыл бұрын
i lik your explication method it is amazing ...no boring thnx
@Rankhole123
@Rankhole123 5 жыл бұрын
Great video as always!
@xnick_uy
@xnick_uy 6 жыл бұрын
This was very nice. I was thinking about creating a "genetic algorithm sort" next, combining some of your former videos and this one :P
@OrangeC7
@OrangeC7 6 жыл бұрын
Actually, the least efficient sorting algorithm is the random sort. *pushes glasses up nose*
@Qwentar
@Qwentar 5 жыл бұрын
BogoSort. I suspect the Bogo stands for Bogus. Surprisingly it can work for short lists (less than ten elements).
@NStripleseven
@NStripleseven 4 жыл бұрын
Nah, miracle sort is worse. "Is it sorted yet? No? Okay, wait, do nothing, wait a minute, and check again.
@piyushnegi8121
@piyushnegi8121 6 жыл бұрын
Again the video i wanted to see..... thank you very much for this video...
@redhen
@redhen 6 жыл бұрын
Watching this video features heavily, very heavily, on my to-do list today. Thank you, Dinael Shufflepins. X
@sudhanshusharma9123
@sudhanshusharma9123 4 жыл бұрын
How do you make everyone laugh even while coding.
@ravenjs
@ravenjs 6 жыл бұрын
Ahhhh and the "jolly-ness" of Dan! It's just so enjoyable to watch your vids! #TheCodingSanta - Santa now codes! *Watching your videos makes me happy! xD
@jacksonweidmannmann5113
@jacksonweidmannmann5113 6 жыл бұрын
the most inefficient sorting algorithm is actually the random sort. You rearrange the array randomly and check if it's sorted. I believe the computation time grows at n!
@comocrearunacarpeta
@comocrearunacarpeta 6 жыл бұрын
Soy de México y estoy estudiando la universidad, curso la carrera en Ciencias de la Computación, conocí tu canal hace no mucho tiempo y me encantó, eres increíblemente ingenioso y muy rápido, con una habilidad tremenda para programar, me la paso viendo tus videos pero mi nivel de inglés aún no es tan bueno como para entender todo lo que dices :(, ojalá que algún día exista un canal en español o yo aprenda bien inglés jaja, en fin quería decirte que incluso a hispanohablantes asombras con tus habilidades de programación. Éxito.
@tomborninger1752
@tomborninger1752 6 жыл бұрын
David López González tengo classes en espanol.
@rafaelmorales1926
@rafaelmorales1926 6 жыл бұрын
Let me translate for you guys: "I'm from mexico, and I'm studying in college computer sciences. I found your channel not so long ago and I loved it, you're really clever and fast, with a tremendous ability to code things. I spend a lot of time watching your videos but my english is still not so good to understand everything you say :(, hopefully someday there is an spanish channel like yours, or I learn english haha. Anyway I wanted to tell you amaze that even to spanish-speakers with your skills."
@Mumumuth
@Mumumuth 6 жыл бұрын
面白い。。。
@T1MK1LL3R4LL
@T1MK1LL3R4LL 6 жыл бұрын
HEROE!
@Mikenight120
@Mikenight120 6 жыл бұрын
Yo tambien estoy estudiando en la universidad Ciencias en computadoras solo que estoy en Puerto Rico metele fuerte al ingles lo vas a necesitar mucho para la programmacion y las oportunidades que vas abrir al entender mejor el ingles con la programmacion
@neson6624
@neson6624 6 жыл бұрын
Just by watching and understanding what you say I did my HW in a few minutes. I would love to nuke the LIKE BUTTON!!!!! Dude you are AWESOME. Just by watching you makes me smile. :D
@ageklopstra6153
@ageklopstra6153 6 жыл бұрын
More sorting videos please!
@LillyCode
@LillyCode 4 жыл бұрын
you are amazing man, amazing
@m4rt_
@m4rt_ 2 жыл бұрын
10:00 you don't need j, you just need i. then just have a boolean saying if everything is sorted, then just end it if that boolean is true (it is sorted) every time you check if it is sorted, if you didn't have to swap then keep it true, but if you had to swap then make it false, and when you reset i to 0 check if sorted is true, if it is true then you didnt have to swap anything and it is all sorted, but if it is false, then set it to true and go over the array again
@torrin4615
@torrin4615 6 жыл бұрын
I spent like 3 hrs in js trying to do the same thing even before I saw this video
@ravencircles4611
@ravencircles4611 6 жыл бұрын
I did this on a 3ds in 20 minutes these sort algs are fun
@firephoenix5556
@firephoenix5556 6 жыл бұрын
somehow, there's something so magical about you saying "I just sorted this with a bubble sort"
@Danacus
@Danacus 6 жыл бұрын
Sorting algorithms! Something I was planning to do! I'm curious to see how the algorithms work.
@MartynCole
@MartynCole 4 жыл бұрын
You can also keep track of whether there is a swap or not. If not you can terminate the sort.
@CristiNeagu
@CristiNeagu 4 жыл бұрын
That swap function is one of the reasons Python is the best.
@CristiNeagu
@CristiNeagu 4 жыл бұрын
Why, you ask? Because swapping two values in Python is: a, b = b, a
@elliotardouin-nesbit5657
@elliotardouin-nesbit5657 4 жыл бұрын
Babe, its 3am, time to watch hours of sorting videos
@PainDive1
@PainDive1 6 жыл бұрын
I loved this one! Gave me ideas on how to study for my CS and algorithms class. I'm glad processing has a library in Python cause I think Python will make it much easier to implement opposed to Java lol.
@juangoria3517
@juangoria3517 6 жыл бұрын
You're so fucking crazy xD Love your videos, keep it doing like this
@vighnesh153
@vighnesh153 4 жыл бұрын
You can probably use generators using the yield keyword to make the visualization of each step simple.
@astrotoaster5555
@astrotoaster5555 6 жыл бұрын
Please do a video of the quickest sorting method, with this same format please
@soparado3676
@soparado3676 6 жыл бұрын
Great work Dan! Could you try to visualize the Radix Sort?
@davidbuzatto
@davidbuzatto 6 жыл бұрын
A pretty nice thing to try is to implement some kind of temporal control, so you can go forward or backward in the sorting process. Give it a try 😊
@AbhishekKumar-mq1tt
@AbhishekKumar-mq1tt 6 жыл бұрын
Thank u for this awesome video
@codeforest9027
@codeforest9027 5 жыл бұрын
As I goes up... My grammar instincts kick in
@linx3519
@linx3519 4 жыл бұрын
This dude reminds me of professor from movie where he decode some alien invasion plan. Same level of hype
@4pxris3
@4pxris3 6 жыл бұрын
cool. i like you. you are the type of person i like.
@mohanish35
@mohanish35 6 жыл бұрын
My worst nightmare would be to open KZbin and don't find this channel.
@roshanpawara8717
@roshanpawara8717 6 жыл бұрын
Come on bubble sort you can do it!!
@Qwentar
@Qwentar 5 жыл бұрын
"The Sorting Algorithm That Could"
@mickyr171
@mickyr171 6 жыл бұрын
I really really want to see you do Delaunay triangles Daniel, easy as on paper, not so easy in programming lol
@NStripleseven
@NStripleseven 4 жыл бұрын
MickyR What's that?
@gamingbutnotreally6077
@gamingbutnotreally6077 6 жыл бұрын
YAY! Sorting Algorithms!
@simpletongeek
@simpletongeek 6 жыл бұрын
I suggest comb sort with 1.2-1.3 factor. It's as fast as quick sort and easier to do than shell sort. I don't know why so many people missed this, but it was mentioned in Byte magazine a long time ago.
@t_kon
@t_kon 6 жыл бұрын
Nope. In general all sorting has its own pro and cons. But no, quicksort average performance is still better than comb sort.
@simpletongeek
@simpletongeek 6 жыл бұрын
Kenneth Anderson I tested it myself. About the only advantage quick sort has over combsort is that using a specialized routine that has reduced element swapping. If you just use a simple routine scan, it is about the same. Again, this is all explained in the article. I'm not convinced comb sort performance is maxed out at this time. There exists still a possibility of seedings that can give even better performance.
@t_kon
@t_kon 6 жыл бұрын
@@simpletongeek no. Comb sort with a growth ratio of 1.25 or so has an average performance of 3n log n. Which is about 3 times slower than quicksort at just n log n.
@simpletongeek
@simpletongeek 6 жыл бұрын
Kenneth Anderson I'm not mathematically advanced to dispute that. But unless it's something you calculated yourself, I'd appreciate a link to the source.
@t_kon
@t_kon 6 жыл бұрын
@@simpletongeek cs.stackexchange.com/questions/40513/why-is-comb-sort-aka-dobosiewicz-sort-faster-than-cocktail-sort-aka-shake-sor
@marnix2452
@marnix2452 6 жыл бұрын
Love you happy boy 9:22. haha
Coding Challenge #115: Snake Game Redux
35:04
The Coding Train
Рет қаралды 182 М.
Coding Challenge #143: Quicksort Visualization
30:06
The Coding Train
Рет қаралды 249 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
The Bubble Sort Curve
19:18
Lines That Connect
Рет қаралды 764 М.
15 Sorting Algorithms in 6 Minutes
5:50
Timo Bingmann
Рет қаралды 25 МЛН
Coding Challenge 182: Apollonian Gasket Fractal
56:48
The Coding Train
Рет қаралды 90 М.
Coding Challenge #86: Cube Wave by Bees and Bombs
30:09
The Coding Train
Рет қаралды 631 М.
Explaining EVERY Sorting Algorithm (part 1)
35:35
Kuvina Saydaki
Рет қаралды 179 М.
Simple Explanation of the Birthday Paradox
12:11
Wrath of Math
Рет қаралды 871 М.
Coding Challenge 179: Elementary Cellular Automata
21:41
The Coding Train
Рет қаралды 162 М.
Coding Challenge 183: Paper Marbling Algorithm
32:10
The Coding Train
Рет қаралды 82 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН