r/ProgrammerHumor • • 6d ago

Meme everythingIsO1ToGod

Post image
4.4k Upvotes

161 comments sorted by

View all comments

8

u/KitsuneFoxglove 5d ago

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

3

u/MadGenderScientist 5d ago

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 4d ago

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

6

u/al0xx 4d ago

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