Computer Science, asked by Rakib126, 2 months ago

Quicksort step by step of this below algorithm
A = 96 48 91 94 31 77 2​

Answers

Answered by alokchaurasiya3094
0

Answer:

The quick sort uses divide and conquer to gain the same advantages as the merge sort, while not using additional storage. As a trade-off, however, it is possible that the list may not be divided in half. When this happens, we will see that performance is diminished.

A quick sort first selects a value, which is called the pivot value. Although there are many different ways to choose the pivot value, we will simply use the first item in the list. The role of the pivot value is to assist with splitting the list. The actual position where the pivot value belongs in the final sorted list, commonly called the split point, will be used to divide the list for subsequent calls to the quick sort.

Similar questions