SAVEE THE EARTH USING ALGORITHMS
SAVE THE EARTH USING ALGORITHMS
1.- Write the definition of:
·
An algorithm:
IS A
SERIE OF INSTRUCTIONS OR ORDERER STEPS FOR PERFORMING AN ACTIVITY OR RESOLVING
A PROBLEM.
·
The project approach:
IS A
METHOD OF DEALING WITH AND RESOLVING THE PRACTICAL PROBLEMS AFFECTING ANY
SOCIETY.
·
A program:
IS
THE TRANSLATION OF AN ALGORITHM INTO A PROGRAMMING LANGUAGE THAT CAN BE
UNDERSTOOD AND PROCESSED BY A COMPUTER.
2.- The chart used to
represent algorithms is called FLOWCHART
or FLOW DIAGRAM and uses symbols
connected by ARROWS to show the sequences
of the actions.
3.- Write the name of
the symbols used in flowcharts, what they are used to and insert one image of
each one and all together in an example:
TERMINAL: REPRESENTS THE BEGINNING OR END OF THE DEVELOPMENT OF AN ALGORITHM.
PROCESS: USED TO REPRESENT EACH OF THE ACTIONS NEEDED TO DEVELOP THE ALGORITHM.
INFO INPUT OR OUTPUT: USED WHEN INFORMATION IS NEDED OR WHEN WE PRESENT DATA OR RESULTS.
DECISION: USED WHEN WE NEED TO DECIDE BETWEEN TWO OR MORE OPTIONS. IT INDICATES THE PATH TO FOLLOW DEPENDING ON THE CHOSEN OPTIONS.
FLOW LINE: TELLS US THE ORDER OF THE ACTIONS IN THE ALGORITHM.
TYPES OF ALGORITHMS
1.- SEQUENTIAL
ALGORITHMS à Definition and
example
THE BASIC STRUCTURE USED TO SOLVE A PROBLEM IS THE SEQUENTIAL ALGORITHMS. THE INSTRUCTIONS OF THE ALGORITHM ARE EXECUTED ONE AFTER THE OTHER IN THE SAME ORDER AS THEY APPEAR.
2.- SELECTIVE (OR
CONDITIONAL) ALGORITHMS à Definition and
example
HAVE A SERIE OF INSTRUCTIONS THAT ARE EXECUTED DPENDING ON WHETHER OR NOT A CONDITION IS MET.
3.- ITERATIVE (OR
REPEATING) ALGORITHMS à Definition and
example
HAVE A SET OF INSTRUCTIONS THAT ARE REPEATED SEVERAL TIMES. THESE INSTRUCTIONS ARE CONTAINED IN LOOPS THAT MARK THE BEGINNING AND END OF THE REPETITION.
HAVE A SET OF INSTRUCTIONS THAT ARE REPEATED SEVERAL TIMES. THESE INSTRUCTIONS ARE CONTAINED IN LOOPS THAT MARK THE BEGINNING AND END OF THE REPETITION.
Comentarios
Publicar un comentario