Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Algorithm

JulianaQuintero9C
Origin of algorithms
,The word algorithm come from the name of a
Persian mathematician, astronomer,
geographer and scholar in the house of wisdom
of Baghdad , He wrote a treatise in Arabic
language in the 9th century, which was
translated into Latin in the 12th century under
the title Algoritmi de numero Indorum. This
title means Algoritmi on the numbers of the
Indians, where Algoritmi was the
translators Latinization of Al-Khwarizmis
name.
characteristics of algorithms
1. Finiteness. An algorithm must always terminate
after a finite number of steps.
2.Definiteness. Each step of an algorithm must be
precisely defined; the actions to be carried out
must be rigorously and unambiguously specified
for each case.
3.Input. An algorithm has zero or more inputs, i.e,
quantities which are given to it initially before the
algorithm begins.
4.Output. An algorithm has one or more outputs i.e,
quantities which have a specified relation to the
inputs.
5.Effectiveness. An algorithm is also generally
expected to be effective. This means that all of the
operations to be performed in the algorithm must
be sufficiently basic that they can in principle be
done exactly and in a finite length of time.
Part of algorithms
1. Basic operation: made assumptions of the
values that it will work with.
2. Parameters: many algorithms take data as an
input.
3. Sequencing: ordering the operations once the
inputs are already there.
4. Variables named values: we name algorithms
or things with abbreviations.
5. Conditionals: At times, our algorithms have to
account for different conditions, doing different
things depending on those conditions.
6. Repetition: its a technique when we need
something again and again as is required.
7. Subroutines: require the use of some common
or more basic operations and actions.
(INPUT, PROCESS, OUTPUT)
Phases of the algorithm
1.Design
The first stage is to identify the problem
and thoroughly understand it.
2.Analyze
How efficient is the code solving problems.
3. Implement
Writing and coding the algorithm.
4.Experiment:
Experiment with different variables in the
algorithm.
Examples:
Algorithms
creation

You might also like