Algorithm is an important part of mathematics and its application and an important foundation of computational science. With the rapid development of modern information technology, algorithms play an increasingly important role in the development of science and technology and society, and are increasingly integrated into many aspects of social life. The idea of algorithm has become the mathematical literacy that modern people should have. The content of algorithm in middle school mathematics is closely related to other contents, such as the solution of linear equations and the summation of series. Specifically, we need to imitate, operate and explore, learn to design the program block diagram to express the problem-solving process, understand the basic idea and meaning of the algorithm, understand the basic structure and basic algorithm statements of the algorithm, and understand the algorithm in ancient mathematics in China.