Algorithms vs Syntax Structure DiagramsKelly Bauer
Algorithms Sequence:	BEGINProcess 1Process 2Process 3END
Selection: Binary
Selection: Multiple
Repition: Pretest
Repition: Post test
SubprogramsAll of these examples are published by the BOS in their 1995 book “Methods of Algorithm Description”. This book is great to get, because it includes examples and worked solutions of algorithm problems
Tetris Example	BEGIN REPEAT REPEATDrop BrickIF Left OR Right key is pressed THEN	Rotate pieceEND IFIF Space Key is pressed THEN	Drop brick to bottomEND IF UNTIL brick hits another brick IF there are a line of bricks made up Remove line of bricks Add 1 to score Add 1 to speed of bricks END IF UNTIL bricks hit top of the screen Display “End of Game”END
So, what is an algorithm?
What’s the difference between an alorithm and a syntax structure diagram?
So, what is a syntax structure diagram?
PublicDimVariableAsData TypePrivateDim [Public|Private] <Variable> As <Data Type>
SingleShortBooleanByteCharDateTimeDecimalData Type= [Single|Short|Boolean|Byte|Char|Date|Time|Decimal|Double|Int|Long]DoubleIntLong
Upper CaseLowerCaseUpperCaseVariable = Uppercase {LowerCase|UpperCase|Digit}Digit
098Digit=0|1|2|3|4|5|6|7|8|97654321
What now?	Design an algorithm for your game.You also need to do syntax diagrams for all the control structures that you would need in your assignment. The control structures come from your algorithm.

Algorithms Vs Meta Language