An exposition of the basics of the theory of algorithms for secondary schools. Examples from mathematical olympiads are given.