0 votes 0 votes Rewrite the INSERTION-SORT procedure to sort into non-increasing instead of non-decreasing order. Algorithms cormen algorithms sorting descriptive + – akash.dinkar12 asked Jun 25, 2019 akash.dinkar12 767 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Insertion-Sort(A,n) //A[1....n] For j <- 2 to n do Key <- A[j] i <- j-1 while(i>0 and A[i] < Key) do A[i+1] <- A[i] i <- i-1 A[i+1] <- Key Satbir answered Jun 25, 2019 Satbir comment Share Follow See all 0 reply Please log in or register to add a comment.