retagged by
337 views

1 Answer

0 votes
0 votes

Adaptive by definition means acting according to the situation.

So, in terms of sorting, if the input array is already sorted to only few elements are misplaced, then if the algorithm sorts it in its best case time, it is said to be adaptive.

Neither quick sort nor merge sort is adaptive. (Can easily be understood by their algorithms).

Related questions

0 votes
0 votes
1 answer
1
saurabh12345 asked Jul 24, 2018
425 views
Insertion sort uses an incremental approach for designing algorithm can someone please explain?
0 votes
0 votes
1 answer
4
Edwees asked Feb 6, 2017
1,906 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 ...