Must use caption before label in algorithm
Must use caption before label in algorithm

In order to generate right number
http://tex.stackexchange.com/questions/65993/algorithm-numbering
must write \caption before \label

weijianwen/SJTUThesis