Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ondra
· 16y ago · 0 comments
No, all-pairs shortest path problem is in P as well.
Comments
[–]
jws
16y 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.