Which is true about the relationship between
algorithms and problems?
A problem is a mapping from inputs to
outputs, and there might be many algorithms that can
accomplish this mapping.
- A problem is a mapping from inputs to outputs. Since
this mapping is fixed, there is only one right way to
compute the mapping.
- An algorithm is another term for a problem.
- A problem is a recipe, and an algorithm is a solution to a problem.
A problem is a mapping from inputs to outputs.
An algorithm is a recipe.
There are many algorithms that can solve a given problem.