Question
Which of the following metrics is NOT typically used in
algorithm analysis?Solution
The number of lines of code is a poor metric for algorithm analysis because it doesn't directly correlate with efficiency. A concise but complex algorithm might be less efficient than a verbose but simple one. Time and space complexity, and operation counts, are standard metrics.