10.07.2015 Views

Les algorithmes voraces - UQAC

Les algorithmes voraces - UQAC

Les algorithmes voraces - UQAC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Preuve par induction de la propositionTrivial si l’arbre a contient k = 1 noeud.Supposons que l’arbre a contient k > 1 noeuds.L’abre a est construit à partir de 2 sous-arbres b et c :b contient i noeuds et hauteur[i] ≤ lg i (hypothèse d’induction)c contient j noeuds et hauteur[j] ≤ lg j (hypothèse d’induction)i + j = k et SPDG i ≤ jSi i < j alorshauteur[a] = hauteur[c]≤ lg j ≤ lg kSi i = j alorshauteur[a] =1+hauteur[c]≤ 1 + lg j = lg(2j) = lg k() February 12, 2013 46 / 48

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!