Course: 113-1 Introduction to Algorithms. Lecturer: Huilan Chang. 2024.11.08

Introduction


Lower bounds for sorting(指comparison sorts)


<aside> ⭐

In a decision tree:

Ÿ


For example, the following is the decision tree for insertion sort when $n = 3$.

F7EEC4E3-2FC0-40D4-9183-2153C05BD94F.jpeg

image.png

<aside> ⭐

Theorem 1. Any comparison sort algorithm requires $Ω(n \lg n)$ comparisons in the worst case if the instances have length $n$.

</aside>