Mathematical Analysis of Non recursive Algorithms