r/ProgrammerHumor • • Oct 14 '26

Meme everythingIsO1ToGod

Post image
4.5k Upvotes

167 comments sorted by

528

u/BobRossTheSequel Oct 14 '26

Christian algorithms require only a single query to the oracle

103

u/DaCat1 Oct 14 '26

Stupid Euclid invented a whole algorithm instead of just consulting his local oracle

16

u/collabskus Oct 16 '26

Maybe that's why it is called oracle because you have to give it basically ten percent of your revenue... 

2

u/HannibalMagnus Oct 20 '26

Actually Euclid was the one, who invented the oracle. Oraclestes was just the guy who worked on it.

34

u/insertcomedy Oct 14 '26

In theory, Christianity is turing complete, the only issue is reading the result.

4

u/Bad_brazilian Oct 14 '26

It doesn't work, but they think it does and walk away happy.

1

u/smulfragPL Oct 15 '26

This is how they solved navier stokes

750

u/cosmicomical23 Oct 14 '26

If god is omniscient, can he always know whether a process is going to terminate or not?

535

u/bartekltg Oct 14 '26

Yep.
It doesn't contradict the halting problem results, bacause you can't run God on a Turing machine.
Someone already talked about oracles https://en.wikipedia.org/wiki/Halting_problem#Oracle_machines

128

u/samobellows Oct 14 '26

"God is not Turing Complete" is a t-shirt i'd wear.

74

u/Skallos Oct 14 '26 edited Oct 14 '26

I'm pretty sure it's supposed to be the other way around, but I don't think there is as catchy a way to say it properly. Turing complete means it can run any Turing machine. Being unable to be run on a Turing machine does not mean it isn't Turing complete. E.g. Turing machine with a halting oracle is Turing complete, but can't be simulated with a Turing machine.

Edit: "God is not Computable" should work.

50

u/bartekltg Oct 14 '26

> "God is not Computable" 

So, you may say "God works in mysterious ways"

8

u/thirdegree Violet security clearance Oct 15 '26

Which is also a pretty solid t-shirt actually

15

u/KitsuneFoxglove Oct 15 '26

If God is Turing complete, then God can run Doom.

8

u/bartekltg Oct 15 '26

God's community managers (prophets) promised God will run Doom as MMO. A server called Armagedon is already booked. 

4

u/Ardub23 Oct 15 '26

Yeah but his version takes 13.8 billion years to load

1

u/cosmicomical23 Oct 15 '26

Some say it already is

1

u/ancepsinfans Oct 20 '26

I like the Wolfram route: God is computationally irreducible

16

u/Kadabrium Oct 14 '26

Oracle machine is just the jvm

147

u/adamtheskill Oct 14 '26

I can simulate god without a single line of code cause that fucker isn't doing shit

119

u/AZMPlay Oct 14 '26

I can simulate him with a bash script!

sleep infinity;

24

u/Yharon314 Oct 14 '26

now we just need to rewrite it in rust

21

u/Traditional_Rabbit54 Oct 14 '26

loop { }

9

u/AZMPlay Oct 14 '26

That's a tight loop though. sleep infinity suspends the process.

12

u/Traditional_Rabbit54 Oct 14 '26

I’ve been uncovered as a fraud. I’ll have to go back to python as recompense. 

Fare well, I shall see you all after my 5 line program manages to execute without throwing 20 errors. 

3

u/Extension_Option_122 Oct 14 '26 edited Oct 19 '26

Sure that that wouldn't get optimized away?

Edit: idk I guess I left my brain outside

6

u/Traditional_Rabbit54 Oct 14 '26

Just tested, it doesn’t, even using the release flag

Godbolt shows that it just jumps to itself

0

u/[deleted] Oct 19 '26

[deleted] — view deleted comment

1

u/Extension_Option_122 Oct 19 '26

Oh damn you are right lol idk what I thought when I wrote that...

1

u/Cruuncher Oct 19 '26

I actually deleted my comment after writing it. After googling it seems that C optimizers do do this.

This is from Gemini and I haven't checked the source yet, but it seems confident:

Under the ISO C and C++ standards, if an iteration statement (loop) has no observable behavior—such as input/output operations, volatile memory access, atomic operations, or thread synchronization—the compiler is legally allowed to assume that the loop will eventually terminate

→ More replies

1

u/cosmicomical23 Oct 14 '26

This thread gives me infinite joy

0

u/AZMPlay Oct 14 '26 edited Oct 19 '26

If ASI ever becomes a reality, parts of our new Machine God might actually be written in Rust.

Edit: To clarify, I am being sarcastic here.

I think the threat of an Intelligence Explosion is real, but I obviously don't think a pile of thinking sand will ever be anything divine.

Which is extra funny cuz I am also an atheist, but I am aware that is besides the point.

Fuck all the AI labs, dearly.

#TeamHuman

6

u/Jcsq6 Oct 14 '26

I mean we can undercut Turing and go straight to Gödel since it has fewer assumptions. If god exists in a logical system, then how can he prove the unprovable? How is he able to avoid the diagonalization argument? As far as the mythology goes, god seems to operate within normal rules of logic (although maybe not physical rules of logic). I guess Gödel still has some assumptions, but I’m pretty sure they’re prerequisites to any useful logical system.

20

u/NomaTyx Oct 14 '26

if you want to be real pedantic, God doesn't need to prove that his answer is correct, but he does know and is obviously right. He did also decide the answer so I mean

7

u/Jcsq6 Oct 14 '26

Assuming god invented logic brings its own joys of philosophical quandaries.

4

u/NomaTyx Oct 14 '26

if we take god as real is the assumption not that he wrote the rules? If not, then what is god in this case? Like obviously his existence brings up problems but i thought we were taking it for granted and not thinking about it too hard for the sake of this specific problem.

4

u/Jcsq6 Oct 14 '26

Well, I’m talking about the philosophical “god”, not the evangelical. An evangelical just says “god is all powerful, he created everything, including logic” and accepts it without much extra thought. But each of these assumptions brings several concrete logical issues— none of which with a clear resolution. I’ll ignore the other issues (e.g., all-powerful / all-good cannot coexist with evil). This is a huge topic in philosophy and has been for thousands of years: Descartes, Ockham, Lewis Carroll, etc. The idea that god created logic gives several issues: nothing can be said about anything that existed before logic— they can’t be said to do or decide anything. So if god created logic, the statement “god created logic” is meaningless. Nothing true can be said about logic. It also means that our notion of logic could very reasonably be nonsense, i.e. god could be lying to us about logic (Descartes’ evil demon). If god did not create logic, then everything works out as expected, but you have to give up a degree of what you would like to assume “all powerful” means.

If you want to look into this, pretty much all philosophy since writing has existed touches on these concepts.

4

u/NomaTyx Oct 14 '26

It also means that our notion of logic could very reasonably be nonsense, i.e. god could be lying to us about logic (Descartes’ evil demon).

Yeah that's kind of what I think "God created logic" entails, that the way things actually work is beyond our comprehension and a real actual capital G God would be by no means bound to the rules that we are, and that we live in a simulated or limited reality under his created rules.

I just assumed that if we say "god" (especially an omniscient one) we assume that this is the evangelical depiction, in which case saying "this god violates logic and can't exist" is a separate argument

4

u/Jcsq6 Oct 14 '26

Well the idea that our logic is a lie isn’t a comfortable one to accept. It basically means that nothing we think, do, or prove has any meaning or actual truth. Even that assertion itself can’t be inferred. You’re correct that, if we’re talking about the evangelical god, then no, this isn’t a problem. But, to them, neither are the hundreds of other logical contradictions in that theology. But this is math we’re talking about, we have a higher standard :)

6

u/thaynem Oct 15 '26

Gödel says you can't prove some statements about a system within that system. But you may be able to prove it in a "higher" system that adds more rules. Presumably an infinite being would be able to use an infinite number of such systems.

3

u/Jcsq6 Oct 15 '26

Yes, but “proving it in a higher system” ultimately decomposes into effectively “take this unprovable result as an axiom”, sometimes in a more clever or agreeable way (see axiom of choice with well ordering theorem). But it can never be resolved. That’s what I was saying in another comment, is that god can trivially serve as this higher-order system, but that doesn’t mean he can actually compute the result or check that it’s true. And an “infinite being can resolve an infinite sequence” only applies if that infinite regress has a resolution possible in the first place. In this case, no matter how high you go, you can never prove the consistency of a system without the higher system. So it doesn’t matter if you can do it an “infinite number of times” (while pretending that infinity can exist in a concrete way like this in this system) if each time doesn’t change anything. The limit of 1 as n goes to infinity is 1.

1

u/nfitzen Oct 14 '26

Gödel's incompleteness theorem is also a computability theory result. God could know all mathematical truth expressible in ZFC (or other systems), even if the collection of all true sentences isn't computable, as Gödel showed.

1

u/Jcsq6 Oct 14 '26

The question isn’t whether god could know all mathematical truth in ZFC. It’s whether he could prove it. If he can prove an unprovable truth in any (useful) logical system, then he violates logic. Unless you count god’s knowledge of the truth as sufficient proof, but that’s equivalent to me proving the consistency of ZFC in a higher system with some extra axioms (whose consistency I also can’t prove). God seems to operate within a logical system, so his all-powerful ability to prove a simple truth is problematic. This is what my comment was getting at.

2

u/nfitzen Oct 14 '26

Sure, but that's just a limitation of computation. If a statement is independent, and we don't have any good extra assumptions to demonstrate that independence, then that's that. Nevertheless, God's word would be the ultimate oracle, so proof by authority would be justified in this instance.

1

u/Jcsq6 Oct 14 '26

Gödel’s incompleteness theorem is not a problem in computation theory, and neither is the provability of any statement inside a logical system. They’re related of course, but computation theory has far more binding assumptions that give god an easy out, as I mentioned (e.g., god is not a Turing machine). Of course god’s contribution to this could simply be “this is true”, and that’s the proof. But that’s no different than us humans “proving” the continuum hypothesis by taking it as an axiom in a higher system. God is effectively just serving as the higher system here. I don’t find that any more satisfying than I do us knowing that Collatz is true but being unable to prove it.

1

u/nfitzen Oct 14 '26 edited Oct 15 '26

I'd encourage you to read the statement of Gödel's incompleteness theorems again. The first theorem, as applied to first-order logic, reads: "any consistent r.e. theory that interprets Robinson arithmetic cannot be complete." On the other hand, ZFC proves "there is a set of true sentences of arithmetic" (because it says N is a structure). The oft-cited corollary of Gödel's first incompleteness theorem is that true arithmetic isn't r.e.

Edit: And yes, it might be that God knows something is true but can't prove it to humans, and thus must serve as a higher system. But that's not a limitation of God; that's a limitation of human belief. We think the Axiom of Power Set is true because it seems intuitive, but there are alternative systems like predicative mathematics that don't accept it.

1

u/Jcsq6 Oct 15 '26

First, this isn’t my area of maths, so my understanding is limited to a Wikipedia article I read some time ago. But it seems you’re right that this is indeed a question of computability. You can accept Th(N) as your set of axioms and everything is trivially provable, but you can’t actually check that any of them are true. So my initial comment was misguided. However, I still stand by my philosophical objection that god being able to “prove” (now corrected to mean “check/compute”) everything violates the rules of logic, and that it’s a reasonable expectation of an all-powerful god. Although it might just reduce to the same theological value as the objection “can god create an object he can’t move”.

1

u/nfitzen Oct 15 '26 edited Oct 22 '26

 god being able to “prove” (now corrected to mean “check/compute”) everything violates the rules of logic, and that it’s a reasonable expectation of an all-powerful god

Of course, an omniscient and omnipotent God still cannot produce a Turing machine that enumerates a complete and consistent theory of arithmetic. We know that's mathematically impossible, like a square circle. But God need not himself be a Turing machine. For example, we could say that God can, in his mind, comprehend the entirety of Th(N) as a set. In other words, he knows at once all infinite possibilities of what is true or not in arithmetic. Edit: And once you know true arithmetic, you know everything about all man-made formal systems, which are, after all, r.e. theories.

1

u/Imaginary-Sock3694 Oct 20 '26

proof by I'm god

1

u/Silly-Freak Oct 15 '26

Wow, this is advanced "can God create a bolder so heavy he can't lift it?"!

1

u/JosebaZilarte Oct 15 '26

you can't run God on a Turing machine.

Bet!

-2

u/teach_cs Oct 14 '26

I don't think this is accurate. The whole point of the halting problem proof was to show that the oracle was, in and of itself, a mathematical contradiction. If a deity could determine whether any arbitrary machine would halt on any arbitrary input, that deity would be self-contradictory.

10

u/HappiestIguana Oct 14 '26

No, oracles are not mathematical contradictions.

A Turing machine that acts as an oracle for Turing machines is a mathematical contradiction.

3

u/nfitzen Oct 14 '26

In ZFC, the halting oracle does exist. Just take the indicator function of the set {n∈N | n codes a halting TM}. Turing's halting problem proof shows (via diagonalization) that there isn't a Turing machine that can solve it.

4

u/mlucasl Oct 14 '26

Then, maybe, we should stop building Turing-Complete machines, that way we can try to build a Oracle-Complete machine that can halt the non-halting process.

1

u/Mental_Ad_4401 Oct 15 '26

If you could construct such a thing, you still wouldn't be able to tell if the oracle-turing machine halted or not

2

u/mlucasl Oct 15 '26

That is why we don't focus on Turing Machines. Turing Complete is so restrictive, like s(0) = s(0), and dumbt things like that. But our Oracle-Oracle machine would know.

1

u/bartekltg Oct 14 '26

No, that proof is about inability to create a program for Turing machine (or something similar)/computable function that takes any program and answer if it stops.
Look at the proof. In the "draft" version, we create a function that use haltinmg-test, and feed it to itself. Looking closely, we see a contradiction.
But it is a contradiction that follows from our assumptions, including the model of computations.

Similarly, without bothering gods, there IS a function h(p,x) that for any program p and input data x returns, if the program p(x) halts. It is just a function from a pair of finite string to {0,1}.
But it is not a computable function. The function exist, but a "program", an "algorithm", that can get those p and x, then compute the answer, does not.

10

u/Yteburk Oct 14 '26

Good one

1

u/Vivid_Instance_825 Oct 15 '26

Can god prove that he's not in a simulation 🤔

1

u/SalvarWR Oct 15 '26

he can test it too, just do infinite steps and see if it finishes

1

u/Party_Estimate_6397 Oct 14 '26

An omnipotent being who was also bound by logic would, by definition, not be omnipotent.

2

u/Highborn_Hellest Oct 15 '26

That's why asked omniscient (all knowing), and not omnipotent (all powerful).

3

u/Nexinex782951 Oct 15 '26

Idk, a lot of people say "omnipotent=can do all that is logically possible" and I think thats a fine definition

1

u/Party_Estimate_6397 Oct 15 '26

Those people are incorrect. That’s not omnipotence. There are things they cannot do.

6

u/Nexinex782951 Oct 15 '26

I mean, definitions are contextual, not prescriptive. In the context you are attempting to apply, invoking logic and philosophy, many philosophers hold the definition I just stated. This is especially because the amount of people who are of the belief that logical contradictions can be actual is incredibly low, which make your definition of omnipotence essentially useless in that field. I'd agree that many would say things like "can do anything" or "all powerful" when asked what omnipotence means, but that doesnt make it the one true definition of anything.

1

u/xryanxbrutalityx Oct 19 '26

square circles, etc

2

u/Upvotoui Oct 15 '26

This has been up for debate for hundreds of yearsgt

0

u/[deleted] Oct 14 '26

[deleted] — view deleted comment

22

u/FoxAnarchy Oct 14 '26

No (mathematical) proof of that.

15

u/Creo7 Oct 14 '26

No empirical proof either. (I don't think)

4

u/cosmicomical23 Oct 15 '26

Yeah we don't really know if the universe is a closed system

3

u/RainbowHearts Oct 15 '26

THERE IS INSUFFICIENT DATA FOR A MEANINGFUL ANSWER.

11

u/Landkey Oct 14 '26

!RemindMe 10 duotrigintillion years

7

u/RemindMeBot Oct 14 '26

Defaulted to one day.

I will be messaging you on 2026-10-15 17:52:12 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


InfoCustomYour RemindersFeedback

1

u/Cualkiera67 Oct 14 '26

but then bam! Boltzmann brain

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

2

u/ArcaniteM Oct 14 '26

This. This is why I'm on Reddit.

2

u/Willinton06 Oct 14 '26

Depends on wether he wants it to be

1

u/[deleted] Oct 15 '26

[removed] — view removed comment

3

u/goplayer7 Oct 16 '26

Both are accurate,the immovable object doesn't mean it blocks everything. The sword simply passes through the object without moving it.

2

u/ApocalyptoSoldier2 Oct 15 '26

Not sure about god, but I heard Chuck Norris could create a rock so heavy even he couldn't lift it, and then he'd lift it anyway

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"

0

u/[deleted] Oct 14 '26

[deleted] — view deleted comment

8

u/Shadawn Oct 14 '26

I can change the value of pi, just assume different geometry. What's hard to me is to make physical geometry conform to my new system, but that shouldn't be all that hard to God. He made the thing, after all.

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

2

u/bartekltg Oct 14 '26 edited Oct 14 '26

Processor (i,j) check is a_i is smaller than a__j. If it is, it report it to processor (i,0). (there we should ask what model of communication we have. Lets say it is a queue that work by magic:)).
In the second cycle processors (i,0) check, if there are any reports at his input queue (it can onloy read one per cycle, but if there is none, it doens't bother us). If none, it mean a_i >= a_j for all j. It is the maximum. "Write" the result (a_i).

Edit: Can downvoting people explain why they do it? This is exactly what the guy asked for: how to find a maximum in an array in O(1) time, having O(n^2) processors.

-1

u/rasmustrew Oct 14 '26

You arw being downvoted because you damn well no noone meant with O(n2) processors

3

u/bartekltg Oct 14 '26

It is just two comments above.
"... The caveat is that you need n2 cores"
That was the entire point of the joke Mindgaptor made.
Then someone asked how to find it in O(1). Sure, he did not repeat the assumption about the cores... because it is rights there.

1

u/rasmustrew Oct 15 '26

It would appear that i am entirely blind

-7

u/_killer1869_ Oct 14 '26 edited Oct 14 '26

Realistically, you can keep track of the largest value at insertion/removal time, or you can have the array sorted and keep track of the highest indexed element. Otherwise, as they said, you can parallelize the function to run on n2 processor cores such that it technically runs in O(1), but even then it would need at least O(log n) for comparing the core's results, but regardless, this is widely impactical from the overhead alone.

14

u/Drugbird Oct 14 '26

Otherwise, as they said, you can parallelize the function to run on n2 processor cores such that it technically runs in O(1) time,

Ok, I'll bite. You can have N cores all read 1 value from the array, then each core spawns N-1 other threads / cores that each read 1 other value to compare to. That's all O(1).

But at the end of that you'll need to check the result of all these N-1 cores to check that they're all lower. And that requires O(n) time in naive implementation, or O(log(N)) if you do a reduction strategy.

4

u/_killer1869_ Oct 14 '26

Damn, I should've checked their claim properly. I didn't consider the time complexity of actually joining the results together, only the comparison itself. Thanks for the correction.

-3

u/Mindgapator Oct 14 '26

You just need a better algorithm. We note A the initial array. n its length. Each step is a single cpu cycle Step 1: allocate a buffer of size n, called B initialized with zeros. Step 2: for each i,j in [0, n[ with i != j if A[i] <= A[j] then write 1 in B[i]. This is O(1) because we have enough cpus, and if they write, they all write the same value. Step 3: for each i in [0, n[ if B[i] == 0 return A[i]. This is O(1) because we have enough cpus. A single value is returned by design of the algo.

8

u/oshaboy Oct 14 '26

Yeah I can probably solve any O(N) problem in O(1) time if I had O(N2) cores. That doesn't make the problem O(1) because as the problem increases you either need to add more cores or take more time. Which is the definition of the complexity of the algorithm.

Also you need to initialize the threads anyway. Even if you have each thread initializing threads until you have enough O(N2) threads that would still require O(log(N)) time.

-1

u/Mindgapator Oct 14 '26

Well it moves a time constraint to a resource one. Time is constant but resources needed scale at n2. Thread init is an implementation detail. It obviously won't work on a machine from the shelf, but a dedicated built could do it.

4

u/TheHyperbolicTangent Oct 14 '26

This is still O(n), as the number of ops scale linearly with the size of the input. Big-O is fundamentally a measure of an algorithm’s complexity. Saying it moves a time constraint to a resource constraint doesn’t alleviate the algorithms complexity.

0

u/Mindgapator Oct 14 '26

We usually note O(n) for time complexity lol, but whatever

0

u/[deleted] Oct 14 '26

[deleted] — view deleted comment

-1

u/Mindgapator Oct 14 '26

You don't. You write a predefined memory address. If others write at the same time, it's only UB if a different value tried to be written. Check the original comment answers, someone else described at the same time something similar if you want a different approach.

3

u/oshaboy Oct 14 '26

That's not really "an array" anymore.

You can also keep a sorted copy of an array alongside an unsorted array. That doesn't mean sorting is now O(1) because you can just return the sorted copy. (Also that would make appending O(N) because insertion to an arbitrary place in an array is O(N))

1

u/_killer1869_ Oct 14 '26

All I did was provide ways to access the largest number from an array in O(1), which is useful if you need that element again and again and again, but it may change inbetween uses.

Keeping track of it dynamically has some overhead, but makes getting the max O(1) since it never has to be computed to begin with.

Same for your sorting example, of course computationally sorting doesn't become O(1), but getting the sorted version, now through lookup instead, becomes O(1).

Obviously, a barebone array isn't capable of that, but that's what programming is about: creating whatever functionality you need yourself (or using another person's implementation). Even more so in OOP, where you could easily subclass an existing type or implement your own for this purpose.

1

u/oshaboy Oct 14 '26

I know what caching is

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.

1

u/RoboticBonsai Oct 14 '26

It’s O(1) if you have an array of all possible combinations

202

u/theone_2099 Oct 14 '26

This one is deep. Answer is funny on at least a couple of levels.

  1. I’m omniscient so it’s always O(1) to me
  2. Or you guys are so behind and you worked so hard to get the wrong answer, it’s actually O(1)

35

u/_SmurfThis Oct 14 '26

Or possibly a joke about a three-some.

36

u/Jerome_Eugene_Morrow Oct 14 '26

Feels more like a holy trinity joke, where the three aspects of God are actually one being.

98

u/UlyssesTheRhinoceros Oct 14 '26

Its a reference to the speed of light joke, where god is asked why he made the speed of light 299972458m/s, and god replies "huh, the speed of light is 1."

36

u/Evening-Appeal7606 Oct 14 '26

Kind of makes sense now that Jesus states in Matthew 10:30 that our hairs are counted. It's a simple hash lookup to the Lord, apparently.

153

u/KazutoOKirigay Oct 14 '26

Why would he use our numeric system??

122

u/DanielBobes Oct 14 '26

He made us with ten fingers for a reason, I guess xD

48

u/KazutoOKirigay Oct 14 '26

Maybe it's 37.321 fingers for him

29

u/Canotic Oct 14 '26

It's 1024 fingers to him, he counts in binary.

5

u/GutiV Oct 14 '26

I know you're joking but it would be 1010 fingers for him if he counted in binary

9

u/courtofcrimsonking Oct 14 '26

I know you're joking

Incorrect

31

u/bartekltg Oct 14 '26

For the same reason he used English.
I could use hexadecimal system when editing x-com saves in dos Navigator, God can translate too.

2

u/KazutoOKirigay Oct 14 '26

Why woulnd't he then use our definitions?

4

u/bartekltg Oct 14 '26

You have written this earlier, and I still do not know what do you mean by it?
Our definition of what?

O(.) ? If we go with the theory that the author of the joke had omniscience in mind, it is rather problem with the author who haven't thought it through. Otherwise, as someone already pointed out, it is a O(1) problem (with n^6 CPUs :))

-5

u/KazutoOKirigay Oct 14 '26

Like our 1 is defined by like one finger. His one is something else then.

3

u/okkokkoX Oct 16 '26

the 1 in O(1) doesn't even need to be the value 1, it can be any positive number. by definition O(af(n)) = O(f(n)) for any positive constant a. By convention we simplify to the simplest form the equivalence class has, so we drop the multipliers and write O(a1) as O(1)

2

u/Sir_Sushi Oct 14 '26

One is one, it's a number, there no other number that is equal to one and every one are the same one for everyone.

One finger is like the digit "1", it's a way to represent one to others. God may have it's own digit to write "1" in it's own langage like "I" for romans.

2

u/Sir_Sushi Oct 14 '26

Because He talks to us and know exactly how we think. Why He would use something else that what we use everyday if He know everything?

There is a billion bullshit about God, this is not one.

1

u/NotADamsel Oct 14 '26

Because he’s making a point?

15

u/Antanarau Oct 14 '26

"You speak English because it's the only language you know.

I speak English because it's the only language YOU know."

12

u/lovecMC Oct 14 '26

Because hes communicating with us?

-3

u/KazutoOKirigay Oct 14 '26

Then he should use our definition of those. Or is he communitcating with us, but in his own numeric system?

3

u/Dull-Nectarine1148 Oct 14 '26

why wouldn't he understand our numeric system?

3

u/crabvogel Oct 14 '26

why wouldnt she

2

u/andarmanik Oct 14 '26

Embarrassing us…

1

u/KazutoOKirigay Oct 14 '26

Hmm, very poetic. I like that

45

u/StructuredQuery Oct 14 '26

oh, its not about threesomes? :c

10

u/Clen23 Oct 14 '26

From what I've seen the problem is actually k-sum and can be studied with k different from 3.
So yeah, definitely voluntary from the researchers to focus on 3-sum specifically,

12

u/whiskeytown79 Oct 14 '26

I initially read that as 3SAT and I was like "omg someone found a polynomial solution to an NP-complete problem"

9

u/Soggy_Recognition873 Oct 14 '26

It was indeed about 3 some 🥀🥀

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

6

u/Traditional-Bid1746 Oct 14 '26

Yeah nah a 3sum is O(MG)

3

u/SoldRIP Oct 14 '26

If big G is on the machine, miracle sort is actually O(0).

3

u/Chronomechanist Oct 15 '26

For god, time and space are the same thing, so he just uses the space complexity and runs it on an infinite number of threads.

1

u/FlashyTone3042 19d ago

God: I use templeOS btw

1

u/crispim1411 Oct 15 '26

Oh yeah threesomes 🤤

-2

u/Huzbi Oct 14 '26

Why did I thought of that 3sun instead of programming problem 3sum. (⁠+⁠_⁠+⁠)