Distinguish recursive and iterative algorithms (#740)

Distinguish recursive and iterative algorithms (#740)

Identify whether algorithm uses function self‑calls or loops.