200k views
3 votes
Which of the following statements about algorithms is true?

A. only one algorithm can solve a given problem.
B. two people must code using the same algorithm to end up with the same working program.
C. you can have several different algorithms for the same activity.
D. you must follow a set of steps in a specific order to arrive at the correct answer.

1 Answer

4 votes

Final answer:

The true statement about algorithms is that you can have several different algorithms for the same activity, as there are often multiple ways to solve a problem using different sets of detailed instructions.

Step-by-step explanation:

The true statement about algorithms is: C. you can have several different algorithms for the same activity. This is because algorithms are essentially sets of detailed instructions that guide the completion of a task or the solving of a problem. Despite the common goal, the approaches can vary greatly in complexity, efficiency, and methods used. For instance, sorting a list of numbers can be accomplished using different algorithms like the bubble sort, merge sort, or quick sort, each with its unique operations but aiming to achieve the sorted list. Additionally, while you do typically need to follow the steps of an algorithm in a specific order to solve a problem correctly, this does not mean that there is only one set sequence that can constitute an algorithm for a problem.

User Angshuman
by
7.1k points