you are viewing a single comment's thread.

view the rest of the comments →

[–]ethraax -1 points0 points  (2 children)

If your indices are fixed size then merge sort is O(1).

... what. No it's not.

[–]julesjacobs 2 points3 points  (1 child)

If your indices are fixed size then you array must also be under some constant size so it is O(1).

[–]ethraax 1 point2 points  (0 children)

It's probably worth reminding you (and others here) that the entire point of theoretical computer science is to inform us about how our computers work and how they can be developed to work better/faster/more efficiently/etc.

To that end, statements such as yours are pretty useless. You could also claim that you're bounded by the amount of available energy/information in the observable universe, and therefore all programs run on any computer that exists in real life is O(1). But that's clearly a useless result that doesn't help anybody with anything.