Let's first look at an example, this is from Thinet's paper.
grammar | Description |
Algorithm | Describe the function of the algorithm, explain the application of the algorithm, and the title. |
Input | Input variables of the algorithm |
Output | Output variable |
All three are on their own line.
grammar | Description |
while 条件 do code.. end while |
cycle |
for condition do code。。 end for |
cycle |
A<-B; | A approaches B |
move A from B into C; | Remove A from B to become C |