Question
You aim to design an efficient algorithm (polynomial complexity) to find the optimal (lowest) number of coins to give in the coin change problem. You
You aim to design an efficient algorithm (polynomial complexity) to find the optimal (lowest) number of coins to give in the coin change problem. You realised that this is a combinatorial optimisation problem, and only brute-force algorithm can guarantee that you will find the optimal solution.
(1)Why does the brute-force algorithm does not satisfy efficiency requirement, in other words does not have a polynomial complexity?
(2)What complexity class this problem belongs to? What does that mean in terms of complexity to find a solution and verify it for this problem?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started