Why is NTM Time Complexity Guessing Polynomial?

  • Context: Comp Sci 
  • Thread starter Thread starter CGandC
  • Start date Start date
  • Tags Tags
    Turing machine
Click For Summary
SUMMARY

The discussion centers on the time complexity of non-deterministic Turing machines (NTMs), specifically addressing the HAMPATH problem's classification within NP. It is established that the depth of the configuration tree for an NTM does not incur overhead when branching to multiple configurations. Consequently, despite the potential for exponential configurations, the running time remains polynomial due to the NTM's ability to "luckily" select an accepting configuration without additional computational cost.

PREREQUISITES
  • Understanding of non-deterministic Turing machines (NTMs)
  • Familiarity with computational complexity theory
  • Knowledge of the HAMPATH problem and its relation to NP
  • Basic concepts of configuration trees in computation
NEXT STEPS
  • Study the properties of non-deterministic Turing machines in detail
  • Explore the implications of NP-completeness in computational problems
  • Learn about configuration trees and their role in time complexity analysis
  • Investigate other NP problems and their classifications
USEFUL FOR

The discussion is beneficial for computer scientists, students of computational theory, and anyone interested in understanding the intricacies of non-deterministic computation and complexity classes.

CGandC
Messages
326
Reaction score
34
Homework Statement
Not homework but something I don't understand: Why is the time-complexity of ## N_1 ## below not exponential due to the overhead of going over all possible configurations?
Relevant Equations
NTM = nondeterministic Turing machine

Running time of a nondeterministic Turing machine that is a decider is the depth of its configuration tree ( the length of the longest branch in the tree ).
1688116665509.png

( Source: Introduction to the theory of computation, Michael Sipser, 3rd edition )

I know the computation of a non-deterministic Turing machine ( NTM ) which is a decider is defined to be the depth of its configuration tree.

In the above example of showing that ## HAMPATH \in NP ##, where it's highlighted in red - I understand that choosing a specific list of nodes costs polynomial time which is the depth of the configuration tree. However, we seem to be choosing every possible option for a list of ## m ## vertices, thus, we have at least ## O(m^m) ## configurations to check, so why is the running time of ## N_1 ## polynomial? shouldn't it be exponential?
 
Physics news on Phys.org
CGandC said:
Why is the time-complexity of ## N_1 ## below not[corrected] exponential due to the overhead of going over all possible configurations?
Because it is an NTM: there is no overhead in branching to any finite number of configurations. Alternatively we can imagine that it can "luckily" choose any configuration that leads to acceptance.
 
  • Like
Likes   Reactions: CGandC
I understand now, thanks.
 
  • Like
Likes   Reactions: pbuk, berkeman and jim mcnamara

Similar threads

Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K