diff --git a/Tp06/mesures.py b/Tp06/mesures.py index 89ada69fea133cbf206ac3827b8353d6d9785184..4a4b88ac928012645a330252ce413c16e309f667 100755 --- a/Tp06/mesures.py +++ b/Tp06/mesures.py @@ -39,7 +39,7 @@ def generation_dicotrie(tailles: list[int]) -> list[DicoTrie]: $$$ generation_dicotrie([0, 2]) [DicoTrie([]), DicoTrie([Association('0', None), Association('1', None)])] """ - ... + return [DicoTrie([Association(str(i), None) for i in range(taille)]) for taille in tailles] def mesure_temps_acces(taille : int, d: dict[str, NoneType] | DicoTrie) -> float: """Renvoie le temps moyen mis pour accéder à 1000 éléments quelconques