From 9dfad3591e30e646c5500a9cb38b79ca2159e150 Mon Sep 17 00:00:00 2001 From: Louis Chmielewski <louischmielewski@MacBook-Air-de-Louis.local> Date: Sat, 9 Mar 2024 11:09:06 +0100 Subject: [PATCH] mesures_temps_acces_dict mesures --- Tp06/mesures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tp06/mesures.py b/Tp06/mesures.py index 89ada69..4a4b88a 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 -- GitLab