Insertion Sort Algorithm

  Рет қаралды 206,170

Khan Academy

Khan Academy

13 жыл бұрын

Visual description of the insertion sort algorithm

Пікірлер: 62
@Hytension
@Hytension 9 ай бұрын
Khan does coding videos too, I thought they were just helping me become a mathematician. Bless
@MahirDheendsa
@MahirDheendsa 7 жыл бұрын
how does he know everything from comp sci to econ to stats to bio
@genericperson8238
@genericperson8238 6 жыл бұрын
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.
@raivatshah7847
@raivatshah7847 5 жыл бұрын
Cause he is Sal Khan
@siddharthrajan616
@siddharthrajan616 5 жыл бұрын
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??
@geekyprogrammer4831
@geekyprogrammer4831 5 жыл бұрын
@@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.
@phillipyoung8773
@phillipyoung8773 5 жыл бұрын
He is a jedi
@coldsummersky69
@coldsummersky69 8 жыл бұрын
Appreciating this channel more and more everyday.
@Sindoku
@Sindoku 5 жыл бұрын
Insertion sort finally clicked for me after seeing this video, thanks for posting it! I feel like I can learn anything from you.
@waqasusmans
@waqasusmans 12 жыл бұрын
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)
@PressStartLetsPlay
@PressStartLetsPlay 9 жыл бұрын
Khan Academy Could you possibly do a video on Big Oh Notation?
@SmashBrosBrawl
@SmashBrosBrawl 7 жыл бұрын
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
@flosset6070 Жыл бұрын
best explanation. Thank you!
@CrazyKangaroo81
@CrazyKangaroo81 6 жыл бұрын
Really helpful video, Thank you
@waqasusmans
@waqasusmans 12 жыл бұрын
@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.
@therobertsons2525
@therobertsons2525 9 жыл бұрын
thankyou ian for showing me this video
@giorgosma
@giorgosma 11 жыл бұрын
your video was very helpfull i finaly got that algorithm thx you
@seahmadnailal-darabi8985
@seahmadnailal-darabi8985 9 ай бұрын
Very perfect
@guptayash4
@guptayash4 10 жыл бұрын
Really Helpful... :)
@Leena20121996
@Leena20121996 11 жыл бұрын
Sal, there's a small request plz start a JAVA playlist too. Right from the basics....! This video was great!
@Gtajora
@Gtajora 13 жыл бұрын
Have my babies!
@memeriyawtube6954
@memeriyawtube6954 5 жыл бұрын
thank you
@Ntamakoupa
@Ntamakoupa 12 жыл бұрын
I LOVE YOU
@jreylbc1
@jreylbc1 13 жыл бұрын
An algorithm is a set of unambiguous finite steps for solving a problem. A classic example of an algorithm is a cooking recipe.
@abubakarsoomro2052
@abubakarsoomro2052 6 жыл бұрын
kya baat kya baat xD
@hamdhiharis6760
@hamdhiharis6760 3 күн бұрын
Why these not available in the legendary app
@shenglanliu4197
@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_Almolaiki
@Khairan_Almolaiki 7 жыл бұрын
thank you very much and i wish show video by language arabic
@ziyancheng8122
@ziyancheng8122 2 жыл бұрын
Maybe it's not. The swapping process is like the bubble sorting instead of insertion sorting.
@mabhinavbunny
@mabhinavbunny 12 жыл бұрын
hats off khan academy
@SmoothJazzVideos
@SmoothJazzVideos 11 жыл бұрын
WHy are you using Python instead of PHP?
@GR4MPI
@GR4MPI 2 жыл бұрын
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
@MexterO123
@MexterO123 11 жыл бұрын
Salman Khan, is there anything your not good at, dude? XD You made this a clear as day for me, thanks. /)
@NIAMProductions
@NIAMProductions 7 жыл бұрын
is this just like bubble sort? or does this only swap once per iteration?
@voyasart
@voyasart 6 жыл бұрын
Nick Manolov only swaps once per iteration
@dappledore
@dappledore 13 жыл бұрын
Is big O notation coming?
@deathmoonkiller
@deathmoonkiller 12 жыл бұрын
what's the difference between Bubble Sort and Insertion Sort? They both comparing the neighbours until they're sorted?
@min_808
@min_808 10 ай бұрын
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.
@jakeambrose4294
@jakeambrose4294 7 жыл бұрын
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.
@jeenajavahar7499
@jeenajavahar7499 6 жыл бұрын
killer programmer yet?
@TooWongCool
@TooWongCool 6 жыл бұрын
I'm subscribing to this comment. Hope you make it to killer programmer status!
@barbie379
@barbie379 6 жыл бұрын
David Ramirez how to subscribe to a comment?
@TooWongCool
@TooWongCool 6 жыл бұрын
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!
@barbie379
@barbie379 6 жыл бұрын
David Ramirez wow ok thank you!!
@TheHTMLCode
@TheHTMLCode 11 жыл бұрын
Does it really matter, he could have done this in C#, Java or any other language, the principle is still the same...
@AR-rr7we
@AR-rr7we 8 жыл бұрын
CAN YOU PLEASE DO VIDEOS ON JAVA!!! PLEASE!
@Se7_7
@Se7_7 4 жыл бұрын
This is not an algorithm
@junior1984able
@junior1984able 13 жыл бұрын
what's a algorithm?
@nandininandakumar381
@nandininandakumar381 3 жыл бұрын
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
@Bushra.studio Жыл бұрын
It is 11 years later😢 How r u ?
@chetansingh4554
@chetansingh4554 12 жыл бұрын
Exam are coming like nuclear bomb here in India.....khan ji.....please explain OPPS concept in detail .....other wise i will fail
Insertion Sort in Python
8:36
Khan Academy
Рет қаралды 163 М.
Introduction to Insertion Sort
13:20
Lalitha Natraj
Рет қаралды 151 М.
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 128 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 15 МЛН
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 16 МЛН
2.8.1  QuickSort Algorithm
13:43
Abdul Bari
Рет қаралды 3,1 МЛН
Insertion Sort Algorithm in Java - Full Tutorial With Source
10:17
Coding with John
Рет қаралды 97 М.
Stepping Through Insertion Sort Function
11:55
Khan Academy
Рет қаралды 38 М.
Selection sort algorithm
10:18
mycodeschool
Рет қаралды 1,2 МЛН
Insertion Sort Algorithm Made Simple [Sorting Algorithms]
8:26
Programming with Mosh
Рет қаралды 296 М.
Insertion Sort | DSA
7:28
Telusko
Рет қаралды 16 М.
SHA: Secure Hashing Algorithm - Computerphile
10:21
Computerphile
Рет қаралды 1,2 МЛН
Learn Merge Sort in 13 minutes 🔪
13:45
Bro Code
Рет қаралды 278 М.
Insertion Sort | C++ Example
11:40
Portfolio Courses
Рет қаралды 26 М.