Which of the following measures are used to assess the quality of an algorithm? Select the 3 correct answers.(1 point)

Responses

number of lines
number of lines

reusability
reusability

time complexity
time complexity

resource consumption
resource consumption

amount of variables

1 answer

The three measures commonly used to assess the quality of an algorithm from the given options are:

  1. Time complexity - This measures how the time to complete an algorithm increases with the size of the input data.
  2. Resource consumption - This assesses how much memory or other resources the algorithm uses during execution.
  3. Reusability - This indicates how easily the algorithm can be reused in other applications or contexts.

The other options (number of lines and amount of variables) are not standard measures for assessing algorithm quality.