Explain Best case analysis using example.
Answers
Answered by
0
Most of the other sorting algorithms have worst and best cases. For example, in the typical implementation of Quick Sort (where pivot is chosen as a corner element), the worst occurs when the input array is already sorted and the best occur when the pivot elements always divide array in two halves.
Similar questions
Computer Science,
7 months ago
Science,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
English,
1 year ago
Sociology,
1 year ago
Science,
1 year ago