Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tp2 Groupe1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Lecocq
Tp2 Groupe1
Commits
1a82a12e
Commit
1a82a12e
authored
4 months ago
by
Lecocq Simon
Browse files
Options
Downloads
Patches
Plain Diff
Commentaires
parent
d3f57bf7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tp_2_miso_mphf.py
+4
-5
4 additions, 5 deletions
tp_2_miso_mphf.py
with
4 additions
and
5 deletions
tp_2_miso_mphf.py
+
4
−
5
View file @
1a82a12e
...
@@ -48,16 +48,15 @@ def construction_mphf(set_kmer, n, gamma=2, nb_niveaux=3):
...
@@ -48,16 +48,15 @@ def construction_mphf(set_kmer, n, gamma=2, nb_niveaux=3):
else
:
else
:
tableau_principal
[
address
]
=
kmer
tableau_principal
[
address
]
=
kmer
tableaux
.
append
(
tableau_principal
)
# Addition du tableau du dernier niveau dans un tableau contenant tous les tableaux des précédents niveaux
tableaux
.
append
(
tableau_principal
)
# expliquer
set_kmer_courant
=
collision
.
copy
()
# Création d'un set de kmer à partir des collisions pour créer tableau du niveau suivant
set_kmer_courant
=
collision
.
copy
()
# expliquer
collision
=
set
()
# Vidage du set de collision pour qu'on puisse le remplir à l'itération suivante
collision
=
set
()
# expliquer
# Construction de la MPHF
# Construction de la MPHF
mphf
=
[]
mphf
=
[]
grand_tableau
=
[]
grand_tableau
=
[]
for
tableau
in
tableaux
:
for
tableau
in
tableaux
:
grand_tableau
.
extend
(
tableau
)
#
expliquer
grand_tableau
.
extend
(
tableau
)
#
Concaténation de tous les tableaux de niveaux
rangs
=
[]
rangs
=
[]
max_rang
=
0
max_rang
=
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment