본문 바로가기

computer science/data structure

1.4.2 Program Step

increment program steps upon encountering;

  1. a if statement
  2. each iteration of a loop(including the iteration for exiting the loop)
  3. a return statement
  4. any kind of assignment statement

However, any subset of above items whose size is constant might be considered as 1