Y
Hacker News
new
|
ask
|
show
|
jobs
by
ondra
6165 days ago
No, all-pairs shortest path problem is in P as well.
1 comments
jws
6165 days ago
I spoke too loosely. Shortest path traversing all nodes is NP (traveling salesman). Obviously shortest path between each pair of nodes is going to be polynomial since the number of pairs is polynomial.
link