Given doubly linked list $L$ that contains $n$ elements of numbers. Between QuickSort, and MergeSort and InsertionSort, which algorithm preferred to sorting $L$ by just swapping links of $L$?
I think the InsertionSort is better option but I have no any idea to show that that minimize number of changing pointers. Any help will appreciated?
Suppose in below black edge is previous link and green edge is next link, after swapping liknks:
