• @[email protected]
    link
    fedilink
    English
    10
    edit-2
    20 days ago

    Really annoys me that this is actually O(n log n) because for large enough n the merge sort will take longer than n*1e6 second. Randall should know better!

    • @Gustephan
      link
      English
      419 days ago

      You should know better too! Behaviour at large n is irrelevant to “best case” complexity analysis of sorting algorithms

      • @[email protected]
        link
        fedilink
        English
        218 days ago

        Of course it still matters, you just take the best case for n as n→∞, instead of the worst or average case.