students need to write a computer program to implement the greedy algorithm for the coin-changing problem, with an amount n and m coin denominations d1 > d2 > d3 > . . . > dm a

Respuesta :

The coin-changing problem is an optimization problem in computer science where the goal is to find the minimum number of coins needed to make a given amount of money. The problem is NP-hard, meaning that there is no known algorithm that can solve it in polynomial time.

What is algorithm?
An algorithm is indeed a finite sequence set exact instructions that is used in computer science and mathematics to solve a class of particular problems or carry out a computation. For performing calculations or processing data, algorithms are employed as specifications. Advanced algorithms can use logical and mathematical tests to guide the code execution through different paths, perform automatic deductions (also known as automated reasoning), and accomplish other tasks. With terminology like "memory," "search," and "stimulus," Alan Turing already used human features to metaphorically describe robots. A heuristic, on the other hand, is a method for addressing problems that may not be fully articulated or may not provide accurate or ideal solutions, particularly in problem domains when there's not a clearly defined proper or ideal conclusion.

To learn more about algorithm
https://brainly.com/question/15217393
#SPJ4