Non Deterministic Algorithms
It has two phases and one output Step-
1)Non Deterministic guessing Phase
2)Deterministic verifying phase
3)Output phase
Non Deterministic guessing Phase
In this phase we arbitrarily choose a string which is considered as proposed solution/certificate for given problem.
Deterministic verifying phase
In this phase we use a fixed /deterministic procedure to verify that proposed solution is correct or not.
If the proposed solution is correct then it returns "YES" otherwise "FALSE".
Output phase
The output is "YES" if step Return "true" otherwise nothing is given as output.
An Non-deterministic algorithm is said to be polynomially bounded if it gives YES answer in polynomial time.
==>>NP is a class of problem for which we have non-deterministic polynomial bounded algorithm.
Eg. 1)Travelling Salesman Problem
2)Hamiltonial Cycle
3)Job sheduling
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment