Question
Differentiate between Polynomial-time and exponential-time algorithms. Give an example of one problem each for these two running times.
Answer :
Word Count : 152
________ ____ ____ _____ _____ ______ ______ _________ __________ _________ _________.
______ __________ _____ ______ ___ ______ _____ _______ ____ ___ _____.
_______ _____ ____ ___ ______ ________ ____ _____ __________ __________ ____.
__________ _________ __________ ____ _______ _____ _________ ______ ___ _______.
_________ _______ _____ _________ _____ _______ __________ _____ ___.
______ ________ __________ __________ ___ ____ ____ __________ ______.
______ __________ _________ ___ _________ ________ ____ __________ ________ ___ _____.
________ ___ _________ __________ _________.
_________ ___ _________ ________ ______.
_________ ___ _______ _____ _________ ____ ___ _____.
_____ ____ ___ ___ _____ _____ _____.
Skip in 10
Polynomial-time algorithms are those where the runtime increases polynomially with the input size. They are generally considered efficient. Examples include algorithms with time complexities like O(n), O(n^2), or O(n^k), where 'n' is the size of the input. An example problem solved in polynomial time is finding the shortest path in a graph using Dijkstra's algorithm,
______ __________ _____ ______ ___ ______ _____ _______ ____ ___ _____.
_______ _____ ____ ___ ______ ________ ____ _____ __________ __________ ____.
__________ _________ __________ ____ _______ _____ _________ ______ ___ _______.
_________ _______ _____ _________ _____ _______ __________ _____ ___.
______ ________ __________ __________ ___ ____ ____ __________ ______.
______ __________ _________ ___ _________ ________ ____ __________ ________ ___ _____.
________ ___ _________ __________ _________.
_________ ___ _________ ________ ______.
_________ ___ _______ _____ _________ ____ ___ _____.
_____ ____ ___ ___ _____ _____ _____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.