Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP2_Sania_Ayat_SD
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ayat Chergui
TP2_Sania_Ayat_SD
Commits
2d4f3d95
Commit
2d4f3d95
authored
1 month ago
by
Ayât Chergui
Browse files
Options
Downloads
Patches
Plain Diff
fini
parent
036284ff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
TP2_hachage/tp_2_miso_mphf.py
+3
-3
3 additions, 3 deletions
TP2_hachage/tp_2_miso_mphf.py
with
3 additions
and
3 deletions
TP2_hachage/tp_2_miso_mphf.py
+
3
−
3
View file @
2d4f3d95
...
...
@@ -48,13 +48,13 @@ def construction_mphf(set_kmer, n, gamma=2, nb_niveaux=3):
tableaux
.
append
(
tableau_principal
)
# expliquer
set_kmer_courant
=
collision
.
copy
()
# expliquer
collision
=
set
()
# expliquer
je pense que c'est pour éliminer les collisoin de même valeurs
collision
=
set
()
# expliquer
# Construction de la MPHF
mphf
=
[]
grand_tableau
=
[]
for
tableau
in
tableaux
:
grand_tableau
.
extend
(
tableau
)
# expliquer
elle va ajouté toute les valeurs du tableau
grand_tableau
.
extend
(
tableau
)
# expliquer
rangs
=
[]
max_rang
=
0
...
...
@@ -67,7 +67,7 @@ def construction_mphf(set_kmer, n, gamma=2, nb_niveaux=3):
mphf
.
append
([
hacher
,
rangs
[
-
1
]])
max_rang
=
max
(
rangs
)
for
kmer
in
set_kmer_courant
:
#
gestion des collisions:
expliquer les 3 lignes du dessous
for
kmer
in
set_kmer_courant
:
# expliquer les 3 lignes du dessous
max_rang
+=
1
h
=
abs
(
hash
(
kmer
))
mphf
.
append
([
h
,
max_rang
])
...
...
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