Eli5: what are P and NP problems and how we are using it in real life?

228 viewsMathematicsOther

Eli5: what are P and NP problems and how we are using it in real life?

In: Mathematics

4 Answers

Anonymous 0 Comments

P is the set of problems where we can quickly find a solution. For example: multiplying two numbers.

NP is the set of problems where we can quickly check a solution. For example, a Sodoku puzzle. Hard to solve, but if I give you a filled Sudoku grid you can easily check if it’s right or not.

All P problems are also NP problems, that is, P is a subset of NP. Since if you can quickly find a solution, then you can quickly check a solution just by quickly solving the problem and comparing your result.

You are viewing 1 out of 4 answers, click here to view all answers.