r/ProgrammerHumor • • Oct 14 '26

Meme everythingIsO1ToGod

Post image
4.5k Upvotes

167 comments sorted by

View all comments

1.0k

u/bartekltg Oct 14 '26

\serious_mode it has to be at least O(n).

750

u/Xontaro Oct 14 '26

If a almighty entity exists, it should be able to give the correct answer without knowing the question. Otherwise it wouldn’t be almighty. So O(1) should be correct.

But now we are in a highly theoretical and improbable realm 😅

182

u/FakeSealNavy Oct 14 '26

If god does n actions of o(1) is it o(n)?

331

u/Direct_Slip7598 Oct 14 '26 • Heartwarming

O(1) in terms of time complexity because it's parallelized (he's beyond time).

0

u/[deleted] Oct 14 '26

[deleted] — view deleted comment

62

u/Mechakoopa Oct 14 '26

He can give you the answer from the future and do the work himself later, but unless you're also omniscient beyond time you're going to have to wait for the answer to resolve.

Wait, is God just JavaScript promises?

0

u/[deleted] Oct 14 '26

[deleted] — view deleted comment

11

u/looksLikeImOnTop Oct 14 '26

Careful now, God's also the game maker. You give him a task he doesn't want to do, he can just remove you from the game

9

u/Majik_Sheff Oct 14 '26

This is the stuff I come to Reddit for.

6

u/xThunderDuckx Oct 14 '26

this might be the most thought provoking and simultaneously stupid discussion I've taken part in ever

→ More replies (1)

2

u/Willinton06 Oct 14 '26

Depends on wether he wants it to be

→ More replies (4)

29

u/Cash-Jumpy Oct 14 '26

I've been enlightened.

17

u/holo3146 Oct 14 '26

This is the basic idea of oracles in maths, an oracle of 3SUM has non trivial computational consequences

7

u/captainAwesomePants Oct 14 '26

God can answer in O(1) time, but asking God the question takes O(N) time.

6

u/bartekltg Oct 14 '26

Since God is omniscient, he knew the man from the tweet had in mind random access machine or a similar model of computation.

2

u/Nekusta Oct 14 '26

So instead he would just say "First of all, 3sum is O(1) dumbass"

→ More replies (2)

46

u/Temporary-Concept-81 Oct 14 '26

O(0)

The answer was already there at the start of the universe.

God is just that good, and tells you to stop wasting her time and RTFM.

9

u/ProfBeaker Oct 14 '26

Ah yes, God arranged a universe such that the computation to answer your question finishes just as you ask it. Makes sense!

36

u/Mindgapator Oct 14 '26

You can find the biggest number in an array in O(1), so your lower bound is not justified. The caveat is that you need n2 cores but that's an implementation detail in GodOS.

18

u/oshaboy Oct 14 '26

How do you find the biggest number in an array in O(1)?

4

u/Ninja_Wrangler Oct 15 '26

Miracle sort O(1) the list and then it is the last element in the list. God can do this easily

→ More replies (19)

3

u/Lithl Oct 14 '26

Nah, he just uses Miracle Sort 3sum

3

u/unitconversion Oct 14 '26

In an infinite universe, the beginning and end times of bounded things are effectively the same point in time.

→ More replies (1)