3.2 | Data Structures and Algorithms Using C++
• Method invocation will be used with
call
■ Example:
call calculat _ area(raidus)
• Condition will be represented with if–then–else.
• Execution control ows (Example: loops) will be used with simple notations like
■ For loop-variable minitial value to nal value
▶
Begin or do
▶ ---
▶ ---
▶
End or done
■
while
(condition)
▶
begin or do
▶ ---
▶ ---
▶
End or done
■
Loop
▶
Begin
▶ ---
▶ ---
▶
End or done
• Array elements can be referenced as
■
Array[0], Array[1],…Array[n]
• If the algorithm is for subroutine or a function or a method
■ Starts with algorithm string followed with the string subroutine or procedure strings
• An un-conditional execution control ...