MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xpapxq/idontgethowthisisdifficult/
r/ProgrammerHumor • u/nicodeemus7 • 28d ago
32 comments sorted by
125
Well because you got the types wrong! p is a list of functions and NP is also a list of functions, and they are both infinite!
Now go prove that! /s
[Edit]
Its actually set, my bad, its a set[Callable[[Any, ...], Any]]
Yikes.
58 u/nicodeemus7 28d ago 2 u/DMoney159 27d ago 3 u/-Redstoneboi- 28d ago set* 3 u/oompaloompa465 28d ago why? no types declared in function signature, both arguments are "any"both arguments are declared as a constant int in the callwhat is that esoteric explanation?
58
2 u/DMoney159 27d ago
2
3
set*
why? no types declared in function signature, both arguments are "any"
both arguments are declared as a constant int in the call
what is that esoteric explanation?
42
why are they equal to 1, might I ask?
26 u/nicodeemus7 28d ago 1 means yes 8 u/rafaelcastrocouto 28d ago ¯_(ツ)_/¯ 14 u/damnappdoesntwork 28d ago Poor dude lost its left arm, here it is \ノ( º _ ºノ) 3 u/rafaelcastrocouto 28d ago thanks, he also has no legs... nor hair or body. poor dude indeed 13 u/emetcalf 28d ago That was just an example, it also works when they are both 2 or both 3. Maybe even more situations, it's a complicated question. 4 u/Thalanator 28d ago Do an induction proof. Or the gentlemans way with a bruteforce for loop.
26
1 means yes
8 u/rafaelcastrocouto 28d ago ¯_(ツ)_/¯ 14 u/damnappdoesntwork 28d ago Poor dude lost its left arm, here it is \ノ( º _ ºノ) 3 u/rafaelcastrocouto 28d ago thanks, he also has no legs... nor hair or body. poor dude indeed
8
¯_(ツ)_/¯
14 u/damnappdoesntwork 28d ago Poor dude lost its left arm, here it is \ノ( º _ ºノ) 3 u/rafaelcastrocouto 28d ago thanks, he also has no legs... nor hair or body. poor dude indeed
14
Poor dude lost its left arm, here it is \ノ( º _ ºノ)
3 u/rafaelcastrocouto 28d ago thanks, he also has no legs... nor hair or body. poor dude indeed
thanks, he also has no legs... nor hair or body. poor dude indeed
13
That was just an example, it also works when they are both 2 or both 3. Maybe even more situations, it's a complicated question.
4 u/Thalanator 28d ago Do an induction proof. Or the gentlemans way with a bruteforce for loop.
4
Do an induction proof. Or the gentlemans way with a bruteforce for loop.
9 u/nicodeemus7 28d ago Tomorrow I'll be proving the twin prime conjecture with a for loop
9
Tomorrow I'll be proving the twin prime conjecture with a for loop
22
p=np works whenever the result on either side would not change based on the n. The numbers that work for this is only zero, as anything times zero is zero. Any other number can be changed by n.
20 u/nicodeemus7 28d ago Yes but 0 means no and I don't like no 3 u/Derekthemindsculptor 28d ago Sure, P = NP.but does OP = 0P?
20
Yes but 0 means no and I don't like no
3 u/Derekthemindsculptor 28d ago Sure, P = NP.but does OP = 0P?
Sure, P = NP.
but does OP = 0P?
1
What do you use to make the function parameter names show when calling a function?
1 u/nicodeemus7 23d ago It's just pycharm out of the box 1 u/SmokeyKatzinski 23d ago Thanks for the response! I'll look into it <3
It's just pycharm out of the box
1 u/SmokeyKatzinski 23d ago Thanks for the response! I'll look into it <3
Thanks for the response! I'll look into it <3
i'm not getting it either... but maybe because python is not my main language?
i'm just reading you are sending to console (print) the result of the function with value 1 assigned to both arguments
should be trivial, what I'm missing?
9 u/Wolvenspud 28d ago https://en.wikipedia.org/wiki/P_versus_NP_problem 5 u/oompaloompa465 28d ago ah ok.lol sorry i took the code too literally. it has been 16 years that i don't do that kind of mathTY for the patience and explanation 1 u/nicodeemus7 28d ago It is impossible to prove P = NP. It's a well known unsolved problem. 3 u/nicki419 28d ago Just set N to 1 smh 3 u/nicodeemus7 28d ago 2 u/alexanderpas 28d ago The problem is that we don't know the values of P and NP, and that the value of NP might be not(P)
https://en.wikipedia.org/wiki/P_versus_NP_problem
5 u/oompaloompa465 28d ago ah ok.lol sorry i took the code too literally. it has been 16 years that i don't do that kind of mathTY for the patience and explanation
5
ah ok.lol sorry i took the code too literally. it has been 16 years that i don't do that kind of math
TY for the patience and explanation
It is impossible to prove P = NP. It's a well known unsolved problem.
3 u/nicki419 28d ago Just set N to 1 smh 3 u/nicodeemus7 28d ago 2 u/alexanderpas 28d ago The problem is that we don't know the values of P and NP, and that the value of NP might be not(P)
Just set N to 1 smh
3 u/nicodeemus7 28d ago
The problem is that we don't know the values of P and NP, and that the value of NP might be not(P)
I asked AI to verify this and it confirmed the solve
Give this guy a million dollars
Guys this makes sense np is just O(1)
[This text has been randomized: satellite]
jungle dark thunder dawn rough slow strange document star black thought
0
is this some ragbait?
np mean not(p)
so it’s
def prove_p_np(p):return p == not(p)
125
u/Jaded-Worry2641 28d ago edited 28d ago
Well because you got the types wrong! p is a list of functions and NP is also a list of functions, and they are both infinite!
Now go prove that! /s
[Edit]
Its actually set, my bad, its a set[Callable[[Any, ...], Any]]
Yikes.
42
u/rafaelcastrocouto 28d ago
why are they equal to 1, might I ask?
8
u/Deep-Secret 28d ago
22
u/DruidBtd 28d ago
p=np works whenever the result on either side would not change based on the n. The numbers that work for this is only zero, as anything times zero is zero. Any other number can be changed by n.
1
u/SmokeyKatzinski 23d ago
What do you use to make the function parameter names show when calling a function?
1
u/oompaloompa465 28d ago
i'm not getting it either... but maybe because python is not my main language?
i'm just reading you are sending to console (print) the result of the function with value 1 assigned to both arguments
should be trivial, what I'm missing?
3
u/Derekthemindsculptor 28d ago
I asked AI to verify this and it confirmed the solve
1
u/Random_-account 28d ago
Give this guy a million dollars
1
u/Odd-Motor-3340 27d ago
Guys this makes sense np is just O(1)
1
u/LoreBadTime 25d ago edited 9d ago
[This text has been randomized: satellite]
jungle dark thunder dawn rough slow strange document star black thought
0
u/Kysan721 28d ago
is this some ragbait?
np mean not(p)
so it’s
def prove_p_np(p):
return p == not(p)