跳到主要內容

Draw a flow chart with algorithm concept speed up coding job


A typical example form Graphs, Algorithms, and Optimization written by W. L. Kocay & D. L. Kreher give me a clue that develop a new flow chart structure which do help on coding job, especially when loop/decision are interwoven.  Please see Fig 1.
Fig 1
First I would make all branch on the right side.
One line command will only represent one process. Multi-line might count one process if they are  consecutive.
When we draw flow chart , every block will be on behalf of one process.
Process sequence will be top down. If possible ,don’t go up .
Fig 2
Fig 2, is a flow chart from a training book which teach student how to get clear about flow chart operation. It fit beginners in the class and  too complicated and tedious to adopt in real project. Afterwards, maintenance and revision are hard to follow up. Fig 3 is my suggestion.
Fig 3