Algorithms (1–3)