First, algorithms must be judged based on their average case, best case, and worst case efficiency[2].
Some algorithms, such
as quick sort, perform exceptionally well for some inputs, but horribly for others. Other algorithms, such as merge sort, are
unaffected by the order of input data