Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is the time complexity class P ?

  • A.Problems solvable in polynomial time
  • B.Problems solvable in exponential time
  • C.Problems verifiable in polynomial time
  • D.Undecidable problems

Answer: A

The class P is problems solvable in polynomial time.

P is the set of decision problems that a deterministic Turing machine can solve in O(nk) time for some constant k. Examples include sorting, shortest paths and primality testing. These are generally treated as efficiently solvable.

Problems whose solutions can be verified in polynomial time form NP, the trap here. Problems solvable in exponential time form EXPTIME. Undecidable problems, such as the halting problem, cannot be solved by any algorithm at all.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.