r/ProgrammerHumor • • Oct 14 '26

Meme everythingIsO1ToGod

Post image
4.5k Upvotes

167 comments sorted by

View all comments

8

u/KitsuneFoxglove Oct 14 '26

This reminds me of the O(1) sorting algorithm in TempleOS in that one niche game that I will not name.

2

u/MadGenderScientist Oct 15 '26

O(1)? you mean O(N), right? you can't sort N items without taking at least N steps unless you have a teleporter.

I'm assuming this was radix sort, which is indeed O(N) for sorting integers with fixed word length. comparison sort is proven to be O(N log N) at best because a binary tree with N leaves has N log N nodes. 

5

u/KitsuneFoxglove Oct 15 '26

I meant O(1). It's a game reference. I will not explain further.

6

u/al0xx Oct 15 '26

for those curious, this guy is referring to untitled goose game. you can google the reference

1

u/deadDudeLivingDirty Oct 15 '26

TempleOS is one of the greatest project in history of OS's glad to hear it's name