Alg. : MIN (a[1],…, a[1])
m <--- a[1];
for I <--- 2 to n
if a[1] < m
then m <---a[1];
Compute T(n), the running time for this algorithm.
An example showing computation of run-time of an pseudo code.