Which of the following measures are used to assess the quality of an algorithm pick 3

reusability
number lines amount of variable
time complexity
resource consumption

1 answer

The three measures used to assess the quality of an algorithm are:

1. Time complexity: This measures the amount of time required by an algorithm to run, usually expressed in terms of the number of operations performed. It helps determine how efficient or fast an algorithm is.

2. Resource consumption: This measures the amount of resources (such as memory or disk space) used by an algorithm. Evaluating resource consumption helps determine how efficient an algorithm is in terms of the resources it requires.

3. Reusability: This measures the ability of an algorithm to be easily reused in different contexts or for different problem-solving scenarios. It assesses how modular and adaptable the algorithm is, allowing it to be employed in various situations without significant modifications.

Number of lines or variables is not typically considered a measure of algorithm quality, as it is more related to the code implementation rather than the algorithm itself.