1.

If the number of steps required to solve a problem is O(n^k), then the problem is said to be solved in:(a) non-polynomial time(b) polynomial time(c) infinite time(d) none of the mentionedI got this question in a national level competition.Enquiry is from Problem Solvable in Polynomial Time in section Intractable Problems of Automata Theory

Answer»

Right option is (b) polynomial time

The explanation is: Most of the operations like addition, SUBTRACTION, etc as well as computing functions including powers, square roots and logarithms can be performed in polynomial time. In the given question, n is the complexity of the INPUT and k is some NON negative integer.



Discussion

No Comment Found

Related InterviewSolutions