Algorithms Inputs, process, outputs
Today
- 1. Algorithms
- 2. Data Types
What is an algorithm?When and how do we use algorithms?
Algorithms
- Computer systems do only what they are told to do, so if you want a computer to solve a problem you must give it specific instructions.
- Computer scientists use algorithms to solve problems.
- Algorithms are all around us…written or verbal
- The description of logical steps of action is an algorithm.
Algorithms
The arithmetic we all learned in elementary is a source of algorithms, for example those we follow to do long division, multiplication of fractions, etc.
Cookbook recipes and math formulas are algorithms because they tell us what to do.
Algorithms are developed before programming an application.
Algorithm
An algorithm is a sequence of steps, written in a common language, that indicate the process to solve a problem.
If followed faithfully, an algorithm will always yield the desired answer.
INFO
Algorithm definition
- Algorithms present problem solution. The steps to solve problem (instructions) stay the same, either if it’s solved by a computer or by hand.
- It is like a recipe that shows the necessary steps to carry out a task.
- Algorithms help programmers design the solution before coding it .
Keep in mind
An algorithm must be general
The knowledge that the square root of 25 is 5 is not an algorithm, the steps of how to do it, is an algorithm.
An algorithm is unambiguous.
It´s not enough to say that steps A, B and C will solve a problem, you must be specific:
- What’s the order of the steps?
- Is there a condition that will affect the sequence or a certain step?
- How many times must be repeated?
Characteristics of an Algorithm
Precise
Defined
An algorithm always generates the same result
An algorithm is clear
Finite
Ordered
An algorithm has a begin and end
Al algorithm has a sequence of steps
Defined
Ordered
Precise
Finite
Methodology to Develop Applications
EMPEZAR
Methodology to Develop Applications
Step 5
Step 2
Step 4
Step 1
Step 3
Final Test and corrections
Design a flowchart
Design a solution or an algorithm using pseudocode
Code with a programming language
Identify and analyze the problem
Problem Analysis
Inputs
- Do calculation to solve the problem
Process
Outputs
What is the input, process and output for the following exercises?
1. A strawberry shake2. Calculate the area of a circle? 3. https://www.nike.com/ 4. https://poki.com/es/g/online-mahjong
+ info
Activity
Go to the link https://code.org/starwars
- Select the block option and start playing. The number of steps is not important, what matters is that you solved the problem.
- After completing the activity, send your certificate to Session 3 in a Word document and answer the following questions
- What inputs did you identify?
- What process did you identify
- What outputs did you indentiy?
HOMEWORK
- In a Word document, explain the process of buying movie tickets. Consider that this purchase must be online. This means that you have to start explaining from the moment you access the website and until you receive the message confirming your purchase. You have to be as clear as possible.
1. Identify the Inputs, the process and the outputs 2. Algorithm. List the steps to buy the ticket, keep in mind the characteristics of an algorithm.
S3_AlgorithmsAD21
laura.tapia
Created on August 16, 2021
Start designing with a free template
Discover more than 1500 professional designs like these:
View
Smart Presentation
View
Practical Presentation
View
Essential Presentation
View
Akihabara Presentation
View
Pastel Color Presentation
View
Terrazzo Presentation
View
Visual Presentation
Explore all templates
Transcript
Algorithms Inputs, process, outputs
Today
What is an algorithm?When and how do we use algorithms?
Algorithms
Algorithms
The arithmetic we all learned in elementary is a source of algorithms, for example those we follow to do long division, multiplication of fractions, etc. Cookbook recipes and math formulas are algorithms because they tell us what to do. Algorithms are developed before programming an application.
Algorithm
An algorithm is a sequence of steps, written in a common language, that indicate the process to solve a problem. If followed faithfully, an algorithm will always yield the desired answer.
INFO
Algorithm definition
Keep in mind
An algorithm must be general
The knowledge that the square root of 25 is 5 is not an algorithm, the steps of how to do it, is an algorithm.
An algorithm is unambiguous.
It´s not enough to say that steps A, B and C will solve a problem, you must be specific:
Characteristics of an Algorithm
Precise
Defined
An algorithm always generates the same result
An algorithm is clear
Finite
Ordered
An algorithm has a begin and end
Al algorithm has a sequence of steps
Defined
Ordered
Precise
Finite
Methodology to Develop Applications
EMPEZAR
Methodology to Develop Applications
Step 5
Step 2
Step 4
Step 1
Step 3
Final Test and corrections
Design a flowchart
Design a solution or an algorithm using pseudocode
Code with a programming language
Identify and analyze the problem
Problem Analysis
Inputs
Process
Outputs
What is the input, process and output for the following exercises?
1. A strawberry shake2. Calculate the area of a circle? 3. https://www.nike.com/ 4. https://poki.com/es/g/online-mahjong
+ info
Activity
Go to the link https://code.org/starwars
HOMEWORK
- In a Word document, explain the process of buying movie tickets. Consider that this purchase must be online. This means that you have to start explaining from the moment you access the website and until you receive the message confirming your purchase. You have to be as clear as possible.
1. Identify the Inputs, the process and the outputs 2. Algorithm. List the steps to buy the ticket, keep in mind the characteristics of an algorithm.