Stepping Through Insertion Sort Function

  Рет қаралды 38,614

Khan Academy

Khan Academy

13 жыл бұрын

Clarifying what "break" does and stepping through the insertion sort implementation

Пікірлер: 19
@Colstonewall
@Colstonewall 11 жыл бұрын
Thank you so much for taking the time to do THIS video, as opposed to stopping at the last vid. This really helps clarify everything in the code. All those variables can get a little confusing. . .THANKS
@robiulhossen
@robiulhossen 11 жыл бұрын
whatever its just crystal clear as a diamond with insertion sort or any other sort. thanx salman. make more video! hats off.
@mprosiles
@mprosiles 12 жыл бұрын
loving these videos, cant wait for more to come!
@MoSec9
@MoSec9 13 жыл бұрын
@m1o2 because you need to know about break too. This video is supposed to explain 'break', that's why.
@shaked7062
@shaked7062 6 жыл бұрын
helped me so much
@dirtydrew69
@dirtydrew69 13 жыл бұрын
thanks for all the videos!!!!!
@ahmadnraja
@ahmadnraja 13 жыл бұрын
Hi Sal, GREAT STUFF !! Will you be doing a video on the BigO notation? I would love to see that.. thanks..
@azkymohamed123
@azkymohamed123 8 жыл бұрын
Thank you sir
@TroyIsaNinjaHippo
@TroyIsaNinjaHippo 2 жыл бұрын
i love you khan
@420hassam
@420hassam 13 жыл бұрын
its been 1 week without any vids...where r u sal....plx do vids on competition mathematics USAMO prob
@MikyLestat
@MikyLestat 13 жыл бұрын
Sal, u could write this function in an easier way. why u used the break ? if u r going to teach a new operator, why not to teach the "and" and "or" operators instead ? while i >=0 and value < list[i]:
@vicksoma
@vicksoma 13 жыл бұрын
After list [ i+1 ] becomes list [ i ] at 5:22, why don't both list [ i ] 's become "value"? (Why don't both 2's become 1's?) Does the computer compute the algorithm in parallel so the first statement in the "if" clause doesn't affect the second statement?
@alkalait
@alkalait 13 жыл бұрын
1 person still codes with Basic.
@qmartijn1
@qmartijn1 13 жыл бұрын
please chek out your AMA request on reddit !
@2010coolrider
@2010coolrider 11 жыл бұрын
help, it only works for the first five values in the list.
@andreirocks1992
@andreirocks1992 13 жыл бұрын
@ro33han python is a lovely language :)
@johnmartin650
@johnmartin650 Жыл бұрын
I DON'T UNDERSTAND WHY I NEEDS TO BE DECREMENTED AT THE END!!! PLEASE HELP IMMEDIATELY!
@callej123
@callej123 13 жыл бұрын
How about doing some more finance or history. I doubt that these programming videos will have the same value to the internet community...
Simpler Insertion Sort Function
2:49
Khan Academy
Рет қаралды 48 М.
Fun with Strings
13:58
Khan Academy
Рет қаралды 202 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 60 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 128 МЛН
Insertion sort algorithm
14:15
mycodeschool
Рет қаралды 1,5 МЛН
Stepping Through the Factorial Program
9:24
Khan Academy
Рет қаралды 75 М.
Insertion Sort Algorithm
7:52
Khan Academy
Рет қаралды 206 М.
Stepping Through Iterative Fibonacci Function
9:39
Khan Academy
Рет қаралды 40 М.
Dijkstra's Algorithm - Computerphile
10:43
Computerphile
Рет қаралды 1,3 МЛН
Diagramming What Happens with a Function Call
9:12
Khan Academy
Рет қаралды 61 М.
How to Speak
1:03:43
MIT OpenCourseWare
Рет қаралды 19 МЛН
Stepping Through Recursive Fibonacci Function
8:04
Khan Academy
Рет қаралды 200 М.
Insertion Sort In Python Explained (With Example And Code)
7:54
FelixTechTips
Рет қаралды 170 М.
Insertion Sort in Python
8:36
Khan Academy
Рет қаралды 163 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 60 МЛН