1、用到的包有:
说明文档:http://mirror.bjtu.edu.cn/CTAN/macros/latex/contrib/algorithm2e/algorithm2e.pdf
说明文档:http://mirrors.ustc.edu.cn/CTAN/macros/latex/contrib/algorithms/algorithms.pdf
\usepackage[boxed,linesnumbered]{algorithm2e}% 算法的宏包,注意宏包兼容性,先后顺序为float、hyperref、algorithm(2e),否则无法生成算法列表,现在大部分都在用这个包
\usepackage{algorithm} \usepackage{algorithmic} %format of the algorithm用这两个包的不多了,好像都被algorothms包中了
说明文档:http://mirrors.ustc.edu.cn/CTAN/macros/latex/contrib/algorithms/algorithms.pdf