Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
projet_s6_loic.scoth.etu_mamadulamarana.bah.etu
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
Loic Scoth
projet_s6_loic.scoth.etu_mamadulamarana.bah.etu
Commits
fdd8232d
Commit
fdd8232d
authored
1 year ago
by
Mamadu-lamarana Bah
Browse files
Options
Downloads
Plain Diff
correction fusion
parents
c1a5b3b5
d4883feb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+10
-2
10 additions, 2 deletions
README.md
src/Node.py
+15
-3
15 additions, 3 deletions
src/Node.py
src/experimentation.py
+29
-0
29 additions, 0 deletions
src/experimentation.py
src/test/experimentation.py
+2
-1
2 additions, 1 deletion
src/test/experimentation.py
with
56 additions
and
6 deletions
README.md
+
10
−
2
View file @
fdd8232d
...
...
@@ -5,6 +5,10 @@
Mamadou Lamarana Bah
Loïc Scoth
## TODO
ajout commande execution/tests
## Description du projet
Le projet consiste à la création et à la représentation d'un arbre binaire, constitué de noeud et de feuilles, que nous créons.
...
...
@@ -66,6 +70,10 @@ suite suppression, création de méthode complémentaire (isArbreB) et rectifica
Suite suppression, fonctionne pour le cas d'une feuille.
### emaine 12
### semaine 12
Suite suppression.
### semaine 13
Suite suppression.
\ No newline at end of file
suite suppression
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/Node.py
+
15
−
3
View file @
fdd8232d
...
...
@@ -137,8 +137,20 @@ class Node() :
Exemple(s):
>>>
node
=
Node
([
12
,
42
],
[
Node
([
3
,
4
]),
Node
([
25
,
26
]),
Node
([
50
,
58
])])
>>>
node
.
suppression
(
50
,
2
)
True
>>>
node
.
search
(
50
)
>>>
node
.
suppression
(
26
,
2
)
True
>>>
node
.
search
(
26
)
>>>
node
.
suppression
(
25
,
2
)
True
>>>
node
.
search
(
25
)
>>>
node
.
suppression
(
12
,
2
)
True
>>>
node
.
suppression
(
3
,
2
)
True
>>>
node
Node
([
42
],
[
Node
([
4
]),
Node
([
58
])])
"""
(
found
,
index
)
=
recherche_dichotomique
(
value
,
self
.
keys
)
if
(
self
.
isLeaf
())
:
...
...
@@ -217,4 +229,4 @@ class Node() :
if
__name__
==
'
__main__
'
:
import
doctest
doctest
.
testmod
(
verbose
=
False
)
\ No newline at end of file
doctest
.
testmod
(
verbose
=
False
)
This diff is collapsed.
Click to expand it.
src/experimentation.py
0 → 100644
+
29
−
0
View file @
fdd8232d
import
unittest
from
Node
import
*
class
experimentation
:
def
setUp
(
self
):
self
.
node
=
Node
([
12
,
42
],
)
if
__name__
==
"
__main__
"
:
import
sys
sys
.
path
.
insert
(
1
,
'
./src
'
)
sys
.
path
.
insert
(
2
,
'
../src
'
)
from
Node
import
*
unittest
.
main
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/test/
NodeTest
.py
→
src/test/
experimentation
.py
+
2
−
1
View file @
fdd8232d
import
unittest
from
Node
import
*
class
NodeTest
:
class
experimentation
:
def
setUp
(
self
):
self
.
node
=
Node
([
12
,
42
],
)
...
...
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