Vous êtes sur la page 1sur 18

18/03/2019

Algorithmes et
Complexité

Licence de Technologie
Génie Logiciel
Emmanuel CHIMI
03/2019

© 2014 Pearson Education, Inc. 1 5-1

Plan du cours

PARTIE I
▶ Conception d'algorithmes: Apprentissage sur projet
PARTIE II
▶ Complexité: Motivations
▶ Complexité: Instructions élémentaires
▶ Complexité: Notation asymptotique

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 2 5-2

Algorithmes et
Complexité

Partie 2 (1)
Motivations de l'étude de complexité
Emmanuel CHIMI
03/2019

© 2014
Edition
Pearson
1/2017Education, Inc. 3 5-3

1
18/03/2019

Plan du cours

PARTIE I
▶ Conception d'algorithmes: Apprentissage sur projet
PARTIE II
▶ Complexité: Motivations
▶ Complexité: Instructions élémentaires
▶ Complexité: Notation asymptotique

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 4 5-4

Notion d'algorithme

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 5 5-5

Qualité d'un algorithme


(ou d'un programme)
▶ l

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 6 5-6

2
18/03/2019

Exemple

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 7 5-7

Exemple

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 8 5-8

Exemple

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 9 5-9

3
18/03/2019

Un autre exemple

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 10 5 - 10

La fonction qui génère les


nombres aléatoires

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 11 5 - 11

La fonction Somme

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 12 5 - 12

4
18/03/2019

Fonction: générer distribution

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 13 5 - 13

La fonction: entropie

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 14 5 - 14

Exemple

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 15 5 - 15

5
18/03/2019

Exemple

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 16 5 - 16

Temps d'exécution

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 17 5 - 17

Produit de matrices

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 18 5 - 18

6
18/03/2019

Produit de matrices

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 19 5 - 19

Produit de matrices

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 20 5 - 20

La fonction: génération aléatoire


de matrices

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 21 5 - 21

7
18/03/2019

La fonction: produit de matrices

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 22 5 - 22

Temps d'exécution

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 23 5 - 23

Produit de matrices: Remarques

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 24 5 - 24

8
18/03/2019

Produit de matrices: Remarques

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 25 5 - 25

Temps d'exécution

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 26 5 - 26

La fonction: produit de matrices

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 27 5 - 27

9
18/03/2019

Remarques

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 28 5 - 28

Remarques

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 29 5 - 29

Remarques

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 30 5 - 30

10
18/03/2019

Remarques

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 31 5 - 31

Complexité d'un problème vs


complexité d'un algorithme

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 32 5 - 32

Complexité d'un problème vs


complexité d'un algorithme

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 33 5 - 33

11
18/03/2019

Complexité d'un problème vs


complexité d'un algorithme

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 34 5 - 34

Complexité d'un problème vs


complexité d'un algorithme

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 35 5 - 35

Complexité d'un problème vs


complexité d'un algorithme

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 36 5 - 36

12
18/03/2019

Complexité d'un problème vs


complexité d'un algorithme

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 37 5 - 37

Evaluation de complexité
temporelle

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 38 5 - 38

Evaluation de complexité
temporelle

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 39 5 - 39

13
18/03/2019

Evaluation de complexité
temporelle

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 40 5 - 40

Evaluation de complexité
temporelle

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 41 5 - 41

Evaluation de complexité
temporelle

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 42 5 - 42

14
18/03/2019

Evaluation de complexité
temporelle
▶ l

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 43 5 - 43

Temps d’exécutions pour les petits


nombres (jusqu’à 1000)

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 44 5 - 44

Temps d’exécutions pour les petits


nombres (jusqu’à 1000)

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 45 5 - 45

15
18/03/2019

Problème avec l'évaluation


empirique

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 46 5 - 46

Problème avec l'évaluation


empirique

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 47 5 - 47

Problème avec l'évaluation


empirique

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 48 5 - 48

16
18/03/2019

Problème avec l'évaluation


empirique

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 49 5 - 49

Problème avec l'évaluation


empirique

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 50 5 - 50

Crédit

▶ Plusieurs diapositives empruntées:

E. CHIMI - Algorithmes
© 2014 Pearson Education,& Complexité - 03/2019
Inc. 51 5 - 51

17
18/03/2019

THANKS
MERCI

© 2014
Edition
Pearson
1/2017Education, Inc. E. CHIMI - Algorithmes & 52 5 - 52

Complexité - 03/2019

18

Vous aimerez peut-être aussi