Visual description of the insertion sort algorithm
Пікірлер: 62
@Hytension9 ай бұрын
Khan does coding videos too, I thought they were just helping me become a mathematician. Bless
@MahirDheendsa7 жыл бұрын
how does he know everything from comp sci to econ to stats to bio
@genericperson82386 жыл бұрын
The general idea is that the more you know the easier it is to pick up new things that are *somewhat* related to what youre picking up. Also he can simply research and learn about topics he didnt know before if doing videos.
@raivatshah78475 жыл бұрын
Cause he is Sal Khan
@siddharthrajan6165 жыл бұрын
Yeah that's my doubt too. Seriously math,phy,coding etc... He is one of our biggest inspiration. However doesn't it make him jack of all trades and master of none??
@geekyprogrammer48315 жыл бұрын
@@genericperson8238 he did his MBA from Harvard and prior to that he did Electrical and Computer Engineering in MIT. So academically, he have covered everything.
@phillipyoung87735 жыл бұрын
He is a jedi
@coldsummersky698 жыл бұрын
Appreciating this channel more and more everyday.
@Sindoku5 жыл бұрын
Insertion sort finally clicked for me after seeing this video, thanks for posting it! I feel like I can learn anything from you.
@waqasusmans12 жыл бұрын
Some words reflect the importance of al-Khwarizmi's contributions to mathematics. "Algebra" is derived from al-jabr, one of the two operations he used to solve quadratic equations. Algorism and algorithm stem from Algoritmi, the Latin form of his name. His name is also the origin of (Spanish) guarismo and of (Portuguese) algarismo, both meaning digit. (From Prof. Wikipedia)
@PressStartLetsPlay9 жыл бұрын
Khan Academy Could you possibly do a video on Big Oh Notation?
@SmashBrosBrawl7 жыл бұрын
big O in a nutshell is the upper bound on how many comparisons an algorithm makes, for example if you have two For loops, you will have N^2 amount of comparisons, thus the upper bound is O(N^2). Binary search does Log2(N) comparisons, so that is it's O(N^2). Big Omega is the lower bound, and Theta is between Big O and Big Omega.
@flosset6070 Жыл бұрын
best explanation. Thank you!
@CrazyKangaroo816 жыл бұрын
Really helpful video, Thank you
@waqasusmans12 жыл бұрын
@junior1984able The name algorithm comes from the Middle Eastern polymath: Abū ʿAbdallāh Muḥammad ibn Mūsā al-Khwārizmī, earlier transliterated as Algoritmi or Algaurizin, (c. 780, Khwārizm - c. 850) was a Persian mathematician, astronomer and geographer, a scholar in the House of Wisdom in Baghdad.
@therobertsons25259 жыл бұрын
thankyou ian for showing me this video
@giorgosma11 жыл бұрын
your video was very helpfull i finaly got that algorithm thx you
@seahmadnailal-darabi89859 ай бұрын
Very perfect
@guptayash410 жыл бұрын
Really Helpful... :)
@Leena2012199611 жыл бұрын
Sal, there's a small request plz start a JAVA playlist too. Right from the basics....! This video was great!
@Gtajora13 жыл бұрын
Have my babies!
@memeriyawtube69545 жыл бұрын
thank you
@Ntamakoupa12 жыл бұрын
I LOVE YOU
@jreylbc113 жыл бұрын
An algorithm is a set of unambiguous finite steps for solving a problem. A classic example of an algorithm is a cooking recipe.
@abubakarsoomro20526 жыл бұрын
kya baat kya baat xD
@hamdhiharis67603 күн бұрын
Why these not available in the legendary app
@shenglanliu4197 Жыл бұрын
Can you explain this procedure insertion sort(a1, a2,…, an: real numbers with n ≥ 2) for j := 2 to n i := 1 while aj > ai i := i + 1 m := aj for k := 0 to j − i − 1 aj−k := aj−k−1 ai := m {a1,…, an is in increasing order}
@Khairan_Almolaiki7 жыл бұрын
thank you very much and i wish show video by language arabic
@ziyancheng81222 жыл бұрын
Maybe it's not. The swapping process is like the bubble sorting instead of insertion sorting.
@mabhinavbunny12 жыл бұрын
hats off khan academy
@SmoothJazzVideos11 жыл бұрын
WHy are you using Python instead of PHP?
@GR4MPI2 жыл бұрын
So there is more comparisons than swaps, because you need to compare before you swap, and if you compare and its already sorted you dont swap am i right ? :D
@MexterO12311 жыл бұрын
Salman Khan, is there anything your not good at, dude? XD You made this a clear as day for me, thanks. /)
@NIAMProductions7 жыл бұрын
is this just like bubble sort? or does this only swap once per iteration?
@voyasart6 жыл бұрын
Nick Manolov only swaps once per iteration
@dappledore13 жыл бұрын
Is big O notation coming?
@deathmoonkiller12 жыл бұрын
what's the difference between Bubble Sort and Insertion Sort? They both comparing the neighbours until they're sorted?
@min_80810 ай бұрын
Well, bubble sort goes through the array, comparing each number with its previous number with every pass until the highest number is on the right. Then it goes back to the start to repeat. However, with insertion sort, the numbers are placed in their correct position.
@jakeambrose42947 жыл бұрын
i watch and wonder how long it will be before i consider myself a killer python programmer? to make it interesting ill come back to this comment when i am.
@jeenajavahar74996 жыл бұрын
killer programmer yet?
@TooWongCool6 жыл бұрын
I'm subscribing to this comment. Hope you make it to killer programmer status!
@barbie3796 жыл бұрын
David Ramirez how to subscribe to a comment?
@TooWongCool6 жыл бұрын
Barbie Lee. If you comment on any other comment or post, you will be notified when a new comment or reply is added to that comment. So you just subscribed to this comment too!
@barbie3796 жыл бұрын
David Ramirez wow ok thank you!!
@TheHTMLCode11 жыл бұрын
Does it really matter, he could have done this in C#, Java or any other language, the principle is still the same...
@AR-rr7we8 жыл бұрын
CAN YOU PLEASE DO VIDEOS ON JAVA!!! PLEASE!
@Se7_74 жыл бұрын
This is not an algorithm
@junior1984able13 жыл бұрын
what's a algorithm?
@nandininandakumar3813 жыл бұрын
It is a step by step procedure for solving a given problem. It can be implemented in any suitable programming language. Remember it is a finite set of instructions.
@Bushra.studio Жыл бұрын
It is 11 years later😢 How r u ?
@chetansingh455412 жыл бұрын
Exam are coming like nuclear bomb here in India.....khan ji.....please explain OPPS concept in detail .....other wise i will fail