Vous êtes sur la page 1sur 35

Algorithmique

Ouldmahraz Abdelkader
mahrazaek@yahoo.fr
EXEMPLE 1 : CALCUL DU PRODUIT
EXEMPLE 2 : CALCUL DU PRODUIT
EXEMPLE 3 : MINIMUM
Exemple 5 : ON CONTINUE L’IMBRICATION
EXEMPLE 5 : CHOIX MULTIPLE (SELON)
Exercices

Ecrire les algorithmes suivants :

-Calcul de factoriel d’un nombre (N)

-Calcul de la sommation suivante :


Les Tableaux

UTILITÉ DES TABLEAUX : EXEMPLES


TABLEAU : DÉFINITION
TABLEAU A UNE DIMENSION

Elément 1 Elément 2 ……… Elément n-1 Elément n Elément 1

Elément 2

…………..

Nom
Elément n-1
Taille
Elément n
Type
Nom (indice élément)
TABLEAU : STRUCTURE DE STOCKAGE
TABLEAU : REMPLISSAGE
INITIALISATION D’UN TABLEAU
PERMUTATION DE 2 ÉLÉMENTS D'UN TABLEAU
RECHERCHE DU PLUS PETIT ÉLÉMENT SUR UNE PARTIE DU TABLEAU (INDICES)
TABLEAU À 2 DIMENSIONS
TABLEAU À 2 DIMENSIONS : UTILITÉ
INITIALISATION
LA MATRICE IDENTITÉ
LA MATRICE IDENTITÉ : “POUR”
https://courspython.com/tableaux-numpy.html

https://www.developpement-
informatique.com/article/229/les-matrices-en-python

http://www.ac-
grenoble.fr/disciplines/maths/pages/PM/Ressources/300/Cree
r_une_matrice_en_Python.pdf

https://courspython.com/tableaux.html

Vous aimerez peut-être aussi