Algorithm Definitions

 

Algorithm drawings, used in this site, are YTU standard. Below are the explanations of these diagrams.

Also MS-Word 2000/XP templates of these diagrams are available. Note that first you may need "ungroup" some of diagrams in order to use. Download MS-Word templates.
 

INPUT Statement

Read  "X"

 

Loop END

You need to move this diagram to the correct position as seen on above diagram by pressing Ctrl + Arrow Keys.

 

Program START

 

Program END

 

IF Condition

This means "if j = n than ... else ..."


FOR Loop

This means "FOR Z = 1  thru  10  step 1"


 

WHILE Loop

This means "WHILE ( (A[i,j] ? 0) and (j < n) )  DO ....."

 

REPEAT-UNTIL Loop

This means "DO ......  WHILE ( (A[i,j] ? 0) and (j < n) )"

 

STATEMENT

Place your program commands here.

 

DISPLAY

If you want to display a result of something else use this diagram.

 

SUB-ROUTINE Call

Very important part. This means call function "Sort" with input parameters "A[]" and "n" and with output parameter "A[]", in this example.

 

SUB-ROUTINE Start

Function start diagram. Parameters must be same as SUB-ROUTINE Call.

 

 

Copyright by Chasan Chouse