Algorithms

Oliver Irwin

27th February 2023

Objectives of the course

  • define what an algorithm is
  • translate a simple problem into an algorithm
  • describe the actions of an algorithm

Algo-what now ?

“A procedure for solving a logical problem in a finite number of steps that frequently involves recursive operations

So, basically, a recipe for solving a problem

A recipe

How to make a good pasta dish ?

  1. put water in the pan
  2. put the pan on the stove
  3. heat the pan
  4. wait for the water to boil
  5. put pasta in the water
  6. wait for pasta to be al-dente
  7. wring out the pasta
  8. enjoy

A recipe - v2

Flowcharts

Used to represent algorithms better