Introduction to Algorithms Where solutions are detailed…
You already know there are 5 stages to problem solving RECAP.. You already know there are 5 stages to problem solving You know that the point of these steps is to eventually write a program instructing the computer to solve the problem You know that a defining diagram helps you to understand the problem by identifying input, process and output So what’s next??
THE ALGORITHM Introducing… It is a plan or blueprint of a program It identifies the step by step solution, showing input output and process It names and uses constants and variables It is defined by Encarta World English Dictionary as a logical step-by-step procedure for solving a mathematical problem in a finite number of steps; and a sequence of steps for solving a problem, …that can be translated into a computer program
So we already know about the individual parts of an algorithm, then So we already know about the individual parts of an algorithm, then. Well, let’s put them together.. THIS IS AN ALGORITHM: THIS IS AN ALGORITHM TOO:
THIS IS OUR FOCUS TODAY… WHAT? Algorithms can be shown in a variety of ways. We are concerned with two of them: The pseudocode And flowcharts THIS IS OUR FOCUS TODAY…