















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















Algorithmics and Data Structures 1 Chapter I. Introduction to Algorithm University of Science and Technology HOUARI BOUMEDIENE Faculty of Computer Science Department of Artificial Intelligence and Data Science
Assitant Professor class A Laboratory of Research in Artificial Intelligence (LRIA) Office 212, Department IASD, Faculty of Computer Science
n Problem to Solve (statement)
n Solution (human organs) Data (input) Processing (operations)
Memory (brain)
n Solution (human calculation/application) Calculate the area 𝒔 of a circle with radius 𝒓, with: 𝒓 = 𝟐, 𝝅 = 𝟑. 𝟏𝟒 Input (Reading action) Read the radius value 𝒓: 𝒓 = 𝟐 Processing (Calculation action) Calculate the area 𝒔: 𝒔 = 𝝅 ∗ 𝒓𝟐^ = 𝟑. 𝟏𝟒 ∗ 𝟐𝟐 Output (Writing action) Write the result 𝒔: 𝒔 = 𝟏𝟐. 𝟓𝟔
n Use of machines Electronic machine capable of performing high-speed calculations Calculator Smartphone Computer
How can we communicate our solution in natural language to a machine?
n Programming software (case of a computer) Software Hardware
n Programming software (case of a computer) Software Hardware
n Solution (machine organs) Data (input) Processing (operations) Reading action Input organs Processing organs
Memory Output organs Result (output) Writing action Calculation action Solution in natural language Solution in machine language
n Solution (machine organs) Data (input) Processing (operations)
Memory (RAM) Output organs (Screen, …) Result (output) Writing action Calculation action
n Solution (machine calculation/application) Solution in machine language (program) DEV-C++ programming software sheet 1 Save the machine solution (program) to the physical memory of the computer
n Solution (machine calculation/application) Lexical error Syntax error Lexical error Syntax error (the) Compilation Solution in machine language (program) DEV-C++ programming software sheet 2 Compile the machine solution (program) Check and correct lexical and syntax errors
n Solution (machine calculation/application) Programmer Application – Human-Machine Interface (HMI) User Solution in machine language (program) DEV-C++ programming software sheet 3 Execute the machine solution (program) Execution Creation of the executable file: INGENIEUR.INFO.exe
n Solution (machine calculation/application) Programmer 1 1 Solution in machine language (program) DEV-C++ programming software sheet User Application – Human-Machine Interface (HMI) Execution 3 Execute the machine solution (program) Read the value of the radius 𝒓 using the input organ (Keyboard), then store the value of the radius 𝒓 in memory (RAM)