Jump to content

coHAMPATH - why is it considered not in NP?

Featured Replies

I understand that if you use the "has a polynomial time certificate" definition of NP, that the complement of the Hamiltonian path problem does not appear to be in NP - there is no certificate of polynomial size that a DTM could use to verify whether a given graph has no such paths. But, using the alternative definition of NP, which is those problems that can be solved in polynomial time by an NTM, doesn't it appear that coHAMPATH is in NP? My "proof" would go like this:

 

1. Give the NTM the description of the entire graph.

2. The NTM then nondeterministically checks every possible path to see if it is Hamiltonian. If any of the branches accept, then reject. If none of the branches accept, then accept.

 

It seems like this algorithm could run on an NTM in polynomial time, thought I can't think of a way to prove to a DTM that a graph has no Hamiltonian paths. Obviously I must be misunderstanding something here, I just don't know what.

Sorry, I don't know about Hamiltonians and stuff :(

I'm not sure we have the expertise for this in Computer Science, so I'm going to pop it over to Applied Mathematics and see if anyone there can do anything with it.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.