Principles addressed:

Big Idea IV. Algorithms: Algorithms are used to develop and express solutions to computational problems.
Key Concept A. An algorithm is a precise sequence of instructions for a process that can be executed by a computer.
Learning Objective 15: The student can develop an algorithm. [P2]
15a. Selection of appropriate techniques—such as sequencing, selection, iteration, and recursion—to develop an algorithm.
15b. Selection of appropriate combinations of algorithms to make new algorithms.
15c. Creation of an algorithm to solve a problem.
15d. Creation of an algorithm with a practical, personal, or societal intent.

>Learning Objective 16: The student can express an algorithm in a language. [P5]
-- 16a. Use of natural language, pseudo-code, or a visual or textual programming language to express an algorithm.
-- 16b. Explanation of how an algorithm is represented in natural language, pseudo-code, or a visual or textual programming language.
-- 16c. Explanation of how the language used to express an algorithm can affect characteristics such as clarity or readability.
-- 16d. Summary of the purpose of an algorithm.

CPSC 110-08: Computing with Mobile Phones

Algorithms

Introduction

In this lecture we will talk about algorithms. We'll look at many different examples. We'll learn about the types of components (steps) that make up algorithms, including sequence, selection, and repetition, and we'll learn how to develop and express some simple algorithms.

In computer science or mathematics an algorithm is a step-by-step method for performing a calculation. Each step in the algorithm must be unambiguous and doable. And there should be a finite number of steps.

We mean calculation in the broad sense that anything a computer does is a calculation. For example, changing the background color of a button when the user clicks on it is a calculation.

An algorithm is similar to recipe directions. But for algorithms we want to run on a computer the steps in a recipe are sometimes ambiguous.

5. Slowly blend in the flour mixture and mix until just combined. Do not overbeat.

An algorithm is similar to hair washing instructions. But some of its steps are ambiguous

Repeat application and rinse if hair is oily, or has excessive build-up.

Algorithms to Compute Sums