No video

insertion sort

  Рет қаралды 94,264

NOC16 CS11

NOC16 CS11

Күн бұрын

Пікірлер: 9
@ShubhamKumar-rm3qe
@ShubhamKumar-rm3qe 6 жыл бұрын
There are more swappings in this algorithm. In insertion sort we put the element to its right position by shifting all the previous elements whatever be the condition is. We don't swap with each previous element which is smaller or bigger.
@devanshsolani2593
@devanshsolani2593 4 жыл бұрын
I find this explanation to be extremely poor. Im following the entire playlist so I feel it as compared to other videos.
@nikhilpatil2482
@nikhilpatil2482 4 жыл бұрын
in code initially sliceend=0 hence pos also 0 and if it is true the while condition is ended because of 1st condition is pos>0 which is completely false even code is correctly run why is this
@pavanashadapu7503
@pavanashadapu7503 4 жыл бұрын
this becacuse at 0 it becomes 0 and 0-1 that is 0 and -1 here -1 is last element of array so it compares first term and last that we don't want and aslo insertion sort work from right to left at 0 there is no left value so it staert at 1 and compares 1 and 0 this is how insertion works
@pragalbhvashishtha7711
@pragalbhvashishtha7711 4 жыл бұрын
The first element where sliceend is zero requires no comparisons to it's left. The while is nested inside, hence when we go to the next element in for loop, sliceend is updated and hence pos as well
@Impeccable_content
@Impeccable_content 5 жыл бұрын
sir ,your code is not working ,
@saikrishnamusunuru6274
@saikrishnamusunuru6274 4 жыл бұрын
What if second paper marks= firstone ??
@vishnushashank1524
@vishnushashank1524 2 жыл бұрын
Insertion sort algorithm is stable which means if same numbers are given in input their order is not changed
@thesweetspirit3458
@thesweetspirit3458 5 ай бұрын
very bad teaching quality... just watching it cz clg has made us register it for a dsa certificate at a cost of 500rs
SHA: Secure Hashing Algorithm - Computerphile
10:21
Computerphile
Рет қаралды 1,2 МЛН
Binary Tree Algorithms for Technical Interviews - Full Course
1:48:53
freeCodeCamp.org
Рет қаралды 710 М.
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 94 МЛН
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН
This Dumbbell Is Impossible To Lift!
01:00
Stokes Twins
Рет қаралды 34 МЛН
Dijkstra's Algorithm - Computerphile
10:43
Computerphile
Рет қаралды 1,3 МЛН
RL Course by David Silver - Lecture 2: Markov Decision Process
1:42:05
Google DeepMind
Рет қаралды 623 М.
Secret Key Exchange (Diffie-Hellman) - Computerphile
8:40
Computerphile
Рет қаралды 958 М.
recursion
17:59
NOC16 CS11
Рет қаралды 96 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 643 М.
Learn Web Design For Beginners - Full Course (2024)
3:07:31
Flux Academy
Рет қаралды 1,9 МЛН
11. Introduction to Machine Learning
51:31
MIT OpenCourseWare
Рет қаралды 1,6 МЛН
Natural Language Processing with spaCy & Python - Course for Beginners
3:02:33
LaTeX - Full Tutorial for Beginners
4:28:44
freeCodeCamp.org
Рет қаралды 530 М.
What are Digital Signatures? - Computerphile
10:17
Computerphile
Рет қаралды 331 М.
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 94 МЛН