KonkurStudy
همه کارت‌ها

The Comparison-Sort Lower Bound (Decision Trees)

Any deterministic algorithm that sorts nn distinct keys using only comparisons needs ⌈log⁡2(n!)⌉=Ω(nlog⁡n)\lceil \log_2(n!)\rceil = \Omega(n\log n) comparisons in the worst case, because its decision tree must have at least n!n! leaves.

کارت قضیه کنکور ارشد مهندسی کامپیوتر