If we could find a polynomial-time algorithm for the optimization problem in any one of them, wewould also have a polynomial-time algorithm for the corresponding decision problem.( ) 7. A nondeterministic algorithm has two separate stages: guessing stage and verification stage.( ) 8. A polynomial-time nondeterministic algorithm is a nondeterministic algorithm whose guessingstage is a polynomial-time algorithm.( ) 9. An approximation algorithm for an NP-hard optimization problem is an algorithm that is guaranteeto give optimal solution.( ) 10. The triangular inequality is defined as follows: If W(u, v) denotes the weight on the edge connectingvertex u to vertex v, then, for every other vertex y, W(u, v) ≤ W(u, y) + W(y, v)