NobleSavage
Veteran Member
Can someone explain to me the P versus NP problem. I read the Wikpedia entry and it didn't help me much. The most math I've had is business calculus.
Can someone explain to me the P versus NP problem. I read the Wikpedia entry and it didn't help me much. The most math I've had is business calculus.
One question that arises when studying algorithmic problems is figuring out the efficiency of a given solution. For a given algorithm, we can figure out the worst-case running time (assuming a basic operation that takes 1 unit of time) that is parametrized by the size of the input.
So for example, in order to figure out the maximum value in a list of n numbers, in the model where comparing two numbers takes 1 unit of time, we check the first number against the second, then check the winner against the third, and then the winner against the fourth, etc, until we have checked all the numbers and found the maximum. This always takes n - 1 comparisons, so the running time is n - 1 in the worst case. That is, it runs in time linear with respect to the size of the input.
In general, we are interested in the asymptotic growth rate, and we say that the running time is O(f) (read "Big-Oh of f of n"), meaning its asymptotic growth rate is bounded above by some constant times f. Similarly to O(f), we say that an algorithm that needs a worst-case asymptotic running time of at least some constant times f has running time Ω(f) (read "Big-Omega of f of n"). If an algorithm is both O(f) and Ω(f), we say it is Θ(f) ("Big-Theta of f of n").
The algorithm above solved the "find the maximum" problem in Θ time, and we can argue that we need to check every number in the list at least once, so every possible algorithm needs at least Ω time, so the "find the maximum" problem has been solved optimally asymptotically. In fact, it isn't hard to prove that every algorithm needs at least n - 1 comparisons so there is no algorithm that runs faster than the one above. So the next question to ask is, which problems do we have where there is a gap between the best known algorithm and the best known lower bound? In other words, where are we being inefficient?
It shouldn't be too surprising that there is a hierarchy of running times. Algorithms that run in worst-case time O(nc) for some constant c > 0 are said to run in polynomial-time as their growth rate is at most some polynomial in the input size n. Algorithms that run in worst-case time Ω(cn) for some constant c > 1 are said to run in exponential-time. When dealing with large instances, exponential time algorithms take essentially forever (2100000 is a very big number), while polynomials scale more reasonably (1000002 is big, but much, much smaller than 2100000).
Ideally, we want every problem we want to solve to have a polynomial-time algorithm. Unfortunately, there are problems that need exponential-time, so we need to be more specific and try to check that every 'reasonable' problem we want to solve has a polynomial-time algorithm. By reasonable, we are going to mean 'has a succinct yes-certificate' which means that maybe we can't find the answer in polynomial time, but if the answer is yes then there is a hint that we can use to verify the answer in polynomial time.
We call the collection of decision problems (where the output is either yes or no) that have polynomial-time solutions the complexity class P (P for `polynomial time'). These are the problems with 'fast' solutions.
We call the collection of decision problems that have a succinct yes-certificate the complexity class NP (NP for 'non-deterministically polynomial time' - the origin of which I will not explain ). These are the problems we can check that the answer is yes quickly (with a hint).
Finally, we get to the question: Is P = NP? That is, is every problem that is efficiently yes-checkable also efficiently solvable? Most experts think no, but we don't have a proof yet.
Thanks beero1000! That made sense to me.
What is an eclipse called if it's the Earth eclipsing the sun as seen from the moon? I'm guessing it's still a solar eclipse since the terms solar eclipse and lunar eclipse refer to what is being eclipsed and not what is doing the eclipsing.
A less dumb question: would that not be the coolest, most badass thing to see??
Found an answer: NASA Earth Observatory says it's still called a lunar eclipse even if you're on the moon and the earth is eclipsing the sun from that view.
...
Finally, we get to the question: Is P = NP? ...
Found an answer: NASA Earth Observatory says it's still called a lunar eclipse even if you're on the moon and the earth is eclipsing the sun from that view.
Simple; P=NP if, (and only if) N=0.
Where do I collect my Fields Medal?
Dumb question:
Is the only reason we think humans originated in Africa is because we find remains there that date back millions of years? And the reason we still find those is because they were preserved because the area dried up and became arid?
Suppose humans evolved elsewhere outside of Africa, but the environment remained well watered and fertile and destroyed any remains before they could become fossilized?
And the reason we still find those is because they were preserved because the area dried up and became arid?
Dumb question:
Is the only reason we think humans originated in Africa is because we find remains there that date back millions of years? And the reason we still find those is because they were preserved because the area dried up and became arid?
Suppose humans evolved elsewhere outside of Africa, but the environment remained well watered and fertile and destroyed any remains before they could become fossilized?
Genetics. If you look at mitochondrial DNA, you see that the older DNA appears in populations in East Africa.
There is also much greater genetic diversity in Africa, supporting the fact that humans originated there.
That confuses me. How can some Human DNA be older than others? And how would we know?
No. Before we ever found any, Darwin said we probably originated in Africa and advised fossil hunters to look there, because our nearest relatives are chimps and gorillas and they live in Africa. (Not a dumb question, by the way. It was highly controversial among anthropologists pretty much all the way until Piltdown Man was proven to be a hoax.)Dumb question:
Is the only reason we think humans originated in Africa is because we find remains there that date back millions of years?
Depending on the time frame you care about, that's kind of what happened -- the long transition from monkey to ape happened in Asia, and then some apes moved to Africa. That counts as human evolution too, no?Suppose humans evolved elsewhere outside of Africa, but the environment remained well watered and fertile and destroyed any remains before they could become fossilized?