What do you mean by complexity of an algorithm?
The complexity of an algorithm M is the function f(n) which gives the running time and/or storage space need of the algorithm in terms of the size n of the input data. Frequently, the storage space needed by an algorithm is simply a multiple of the data size n. Thus, the term "complexity" shall refer to the running time of the algorithm.