Lowed bound for sorting by comparison

后端 未结 3 1825
无人共我
无人共我 2021-01-13 00:08

Today I was reading a great article from Julienne Walker about sorting - Eternally Confuzzled - The Art of Sorting and one thing caught my eye. I don\'t quite understand the

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-13 00:33

    You didn't miss anything from CompSci class. What you missed was math class. The Wikipedia page for Stirling's Approximation shows that log n! is asymptotically n log n + lower order terms.

提交回复
热议问题