Advertisement
sleeky

Computational complexity

Jul 6th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. Iris: what does P = NP mean?
  2. Mary: "Though the universe's mysteries appear deep, their depth is an illusion. The world is nothing but a toy based on a magic trick."
  3. .
  4. Iris: like this? [holds up the infinite light vortex]
  5. Mary: Yes. Exactly.
  6. .
  7. Iris: what's the big deal about it? i thought it was something to do with maths and computers.
  8. Mary: If P = NP, there's a trick by which you can factor 55006097 as easily as you can multiply 4133 and 13309.
  9. Iris: [sarcastically] earth-shattering.
  10. .
  11. Mary: More generally, you could prove any mathematical conjecture as easily as checking the logic of such a proof, were the proof to already exist.
  12. Iris: [Iris makes a so-so gesture] okay, slightly troubling.
  13. .
  14. Mary: If P = NP, there's trick that will make you as clever as anything you could understand
  15. .
  16. Mary: As talented as anything you could appreciate
  17. .
  18. Mary: As funny as—
  19. Iris: [no longer sarcastic] okay, sarcasm withdrawn
  20. .
  21. Iris: so, what are P and NP?
  22. Mary: P and NP are computational complexity classes.
  23. .
  24. Mary: P stands for "Polynomial time". It's the class of problems whose solutions require a computation with a length that has at most a polynomial ratio to the size of the input.
  25. .
  26. .
  27. Iris: like, if sudoku puzzles take a computer X^3 steps to solve, maximum, that's polynomial time?
  28. Iris: where X is the size of the grid or whatever?
  29. .
  30. Mary: Yes. Whereas if the most efficient solution takes 3^X steps, that's exponential time.
  31. Iris: ok, seems simple enough...
  32. .
  33. Mary: Computational complexity theorists have yet to establish whether Sudoku can be solved in polynomial time. As with many puzzles, they do know it belongs to the class of problems whose solutions can be verified in polynomial time.
  34. Mary: Additionally, they know that if it can be solved in polynomial time, everything else in the class can as well.
  35. .
  36. Iris: what's the sudoku class called?
  37. Mary: NP.
  38. .
  39. Iris: oh.
  40. Iris: i'm starting to get a creepy feeling
  41. .
  42. Iris: i assume the maxcut problem is also in NP
  43. Mary: Yes. Like Sudoku, it's "NP-complete". If it's solvable in polynomial time...
  44. .
  45. Iris: ...then P = NP. that explains grant's obsession with that algorithm...
  46. .
  47. Iris: christ, i feel unclean for working on it with him.
  48. .
  49. Iris: it's like helping a friend of a friend look for their car based on a verbal description with subtly suspicious holes in it, eventually giving up, then later watching Back to the Future and realizing what car they were looking for
  50. .
  51. Iris: in retrospect, it's obvious ben has known all along that grant's algorithm can't work, and has politely omitted that detail every time he's discussed it with me
  52. .
  53. Iris: [as Ben] Ah yes, Grant is obsessed with his car. He often asks me to help him find it in the car park.
  54. .
  55. Iris: never actually _suggesting_ that i help grant with his algorithm, just letting the idea sit quietly on the table like a vase of wilted poppies...
  56. .
  57. .
  58. Iris: i assume the university types are busy proving P _doesn't_ equal NP.
  59. Mary: Yes. Trying, at any rate.
  60. .
  61. Iris: how long have they been at it?
  62. Mary: 40 years.
  63. .
  64. Iris: why is it taking so long?
  65. Iris: and don't say "i don't know" because that's the scariest thing i can imagine you saying
  66. Mary: About this, or generally?
  67. Iris: about anything!
  68. .
  69. Mary: Were you scared all the time before you met me, when you had to figure things out yourself?
  70. Iris: no! because i didn't hang out with hp lovecraft's robot mindfuck squad all day!
  71. .
  72. Hawaii: can i be in hp lovecraft's robot mindfuck squad?
  73. Iris: YOU *ARE* HP LOVECRAFT'S ROBOT MINDFUCK SQUAD! I SHOULD PROBABLY STOP *SCREAMING* "MINDFUCK" AT AN *EIGHT-YEAR-OLD!*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement