0% found this document useful (0 votes)
5 views1 page

Introduction to Algorithms & Programming

Chapter 1 introduces the concept of algorithms as step-by-step processes for solving problems, typically expressed in a pseudo language. It explains the necessity of translating algorithms into programming languages for computer execution, distinguishing between compiled and interpreted languages. Additionally, it discusses data structures as methods for organizing information in memory to enhance program efficiency.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Introduction to Algorithms & Programming

Chapter 1 introduces the concept of algorithms as step-by-step processes for solving problems, typically expressed in a pseudo language. It explains the necessity of translating algorithms into programming languages for computer execution, distinguishing between compiled and interpreted languages. Additionally, it discusses data structures as methods for organizing information in memory to enhance program efficiency.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Chapter 1 - Introduction to Algorithms and Programming Page 1/1

Chapter 1 - INTRODUCTION TO ALGORITHMS AND TO


PROGRAMMING

I-1. Notion of Algorithm

An algorithm is the description of the steps to follow to solve a problem in a number


end of steps. It describes a process on a certain number of data (possibly
none)
An algorithm is most often written in a language close to everyday language, called
algorithmic language or pseudo language.

I-2. Programming language

In order to be understood and executed by a computer, an algorithm must be translated into a language.
specific, which we call programming language. This results in what is called a
computer program that contains the entire set of consecutive actions that the computer
must execute. These actions are called instructions.
The language used by the computer's processor is called machine language. It is the only one.
language that the computer understands. A program in machine language is only
made up of a sequence of 0s and 1s (binary code), which is why it is difficult to
understand and write programs in this language.
Thus, it is more practical to create a program in a language that is more understandable.
the man and then translate it into machine language using a specialized program.
According to the translation method, compiled languages and interpreted languages are distinguished.

I-2-1. Compiled language

In the case of a compiled language (for example: C, C++, Pascal...), the program created,
called source program, is completely translated by what is called a compiler
before it can be executed by the computer. The compilation generates a so-called program
executable program.
This generated program is autonomous, meaning it does not need another program.
to execute. But with each modification of the source program, it will need to be recompiled.
to generate a new executable program that will take the changes into account.

I-2-2. interpreted language.

In the case of an interpreted language (for example: Perl, Lisp, Prolog...), the source program
needs, for each execution, an auxiliary program called an interpreter that will read it
to translate and execute each instruction one by one. In this case, there is no
generation of executable program.

I-3. Data structures

A data structure is a way to organize information in memory.


the computer to facilitate their manipulation. There are several data structures: array,
structure, linked list, tree... Their choice heavily influences the simplicity of the program
and on its effectiveness.

Doctor F. CAMARA / ESTM

You might also like