




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Control flow if … then … [else …] while … do … repeat … until … for … do … Indentation replaces braces Method declaration Algorithm method ( arg [, arg …]) Input … Output … Method/Function call var.method ( arg [, arg …]) Return value return expression Expressions ¬Assignment (like in C++) =Equality testing (like in C++) n 2 Superscripts and other mathematical formatting allowed
Best-case, average-case and worst-case(contd.)