For measuring the complexity of an algorithm, is it time complexity, or computational complexity? What is the difference between them? I used to calculate the maximum (worst) count of basic (most costing) operation in the algorithm.
Asked
Active
Viewed 1,302 times
1 Answers
10
Computational complexity is the general subject of using complexity measures to compare programs or algorithms. Time complexity and space complexity are two measures that are commonly used when talking about computational complexity, but there are others.
For example, it's common to look at the number of comparisons performed in a sorting algorithm.
Paul Hankin
- 281
- 2
- 7