diff --git a/__pycache__/tp_2_miso_mphf.cpython-311.pyc b/__pycache__/tp_2_miso_mphf.cpython-311.pyc index 8cc2c8273a168eef66b40fbd77ce425a83fe872c..097e73219b3bbdca831893468f81055151c9d3ed 100644 Binary files a/__pycache__/tp_2_miso_mphf.cpython-311.pyc and b/__pycache__/tp_2_miso_mphf.cpython-311.pyc differ diff --git a/tp_2_miso_mphf.py b/tp_2_miso_mphf.py index f69368b9b8cf9860af12e7803b019b18cc6398f2..ac9b827c45ccf72c836ac7ec1b3e4c039d7419bd 100644 --- a/tp_2_miso_mphf.py +++ b/tp_2_miso_mphf.py @@ -94,9 +94,9 @@ def construction_mphf(set_kmer, n, gamma=2, nb_niveaux=3): index = grand_tableau.index(h2) # récupérer son rang (utiliser la fonction count()) c = grand_tableau[0:index].count(-1) - rang = index - c + rangs = index - c # ajouter à la mphf [h, rang] - mphf.append((h2, rang)) + mphf.append((h2, rangs)) # mettre à jour max_rang max_rang += 1