Algorithms

Kenji Lozano
Senior Software Developer

INDEX

1. What is an Algorithm
2. Characteristic of Algorithms
3. Types of Algorithms
 

What is "Algorithm"?

Solve Problems!

Problem?

El Problema no es Problema
by Ricardo Arjona

Problem?

Normal People

Problem?

Software Engineer

Developer

So... What is a "Problem"?

Its just a Situation, Activity or Task

Developer - Problem

  • Solve Problems

  • Convert Activities/Tasks into something simpler

Developer - Problem

Developer:

Create algorithms to better express solutions

Developer:

Solve Problems!

Software Engineer

Solutions & Problems

Technologies / Programming Languages

How???

Algorithms!

What is an Algorithm?

There is no unique definition

A series of organized steps that describe the process you must follow to solve a specific problem

What is an Algorithm?

Could be compared with a recipe

Let's build our first algorithm

Coffee Algorithm

1. Have a cup

2. Take a pot

3. Pour water into the pot

6. put coffee to the water inside the cup

4. Boil the water in the pot

5. pour hot water into the cup

7. Mix the coffee with the water

Coffee Algorithm

TASK 1

How can you improve our coffee algorithm?
Clue: What about sugar?

Algorithm - Characteristics

Precise

Finite

Should have order

Should end at some point

Juice Algorithm

TASK 2

Algorithm to prepare a fruit juice

Algorithm - Types

Qualitative

Quantitative

Day-to-day

Algorithm - Types

Use Case: You have an apple plantation, build tree types of algorithms related to apples

Algorithm - Qualitative

Expressed more verbally, evaluates the quality

The qualitative algorithm, could be:
1. Evaluate its Taste
2. Evaluate its Color

Algorithm - Quantitative

Its more related to numerical calculations

The quantitative algorithm, could be:

How many apples per tree we have

Algorithm - Day-To-Day

it's more related to common tasks

The day-to-day algorithm, could be:

Algorithm to cook an apple pie 

Types of Algorithms

TASK 3

2 Examples of algorithms qualitative, quantitative and day-to-day. Should be done in the same was we did for apples

Recap Time!

Algorithms

Algorithms

El problema no es problema

We build Algorithms!

What is an algorithm?

A set of steps to solve problems

Types algorithms

Qualitative

Quantitative

Day-to-day

Challenge Time!

This is optional

We you able to convert your flow diagrams that you worked with Jimmy into algorithms?