retagged by
421 views

1 Answer

0 votes
0 votes
Insertion sort sorts the elements one by one in incremental manner,

After first pass, first element is sorted.

After second pass, first two elements are sorted.

.

.

After nth pass, all n elements are sorted.

Related questions

0 votes
0 votes
1 answer
2
Edwees asked Feb 6, 2017
1,900 views
We have a list of pairs [("Tariq",71),("Brinda",85),("Shweta",71),("Sunita",85),("Salma",72),("Uday",60)], where each pair consists of a student's name and his/her marks ...
1 votes
1 votes
2 answers
4
Vishal Upadhayay asked Apr 14, 2017
634 views
HI i am trying to understand what author is trying to explain in the below para. However i understood the meaning of Theta(n^2) but if anyone can explain me this para in ...