The complexity of the algorithm is defined as (something like :)
the number of operations that the algorithm performs as a function of its input size.
So, you need to try your algorithm with different input sizes (i.e. for sorting - try sorting 10 elements, 100 elements, etc.) and count each operation (for example, assignment, increment, mathematical operation, etc. ), which makes the algorithm.
"" .
, - profiling.