Title: Elements of the General Theory of Optimal Algorithms