GATEverse
← GATE CSE 2003

Q62

MCQ2 marks, −0.5

In a permutation a1…ana_1\ldots a_n, of nn distinct integers, an inversion is a pair (ai,aj)(a_i, a_j) such that i<ji < j and ai>aj.a_i > a_j. What would be the worst case time complexity of the Insertion Sort algorithm, if the inputs are restricted to permutations of 1...n1. . . n with at most nn inversions?

Sign in to save attempts.

Loading…