5.1 What is an Algorithm?

An algorithm is a step-by-step method to solve a problem.

5.2 Daily Life Algorithms

Example: Brushing Teeth

  1. Pick toothbrush

  2. Apply toothpaste

  3. Brush

  4. Rinse

5.3 Algorithms in AI

Algorithms decide:

  • How to learn

  • How to predict

  • How to improve

Examples:

  • Decision Tree

  • KNN

  • Neural Network