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
d4883feb
Commit
d4883feb
authored
1 year ago
by
Loic Scoth
Browse files
Options
Downloads
Patches
Plain Diff
commit pb git
parent
b683b7af
No related branches found
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
+1
-1
1 addition, 1 deletion
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
42 additions
and
4 deletions
README.md
+
10
−
2
View file @
d4883feb
...
...
@@ -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
+
1
−
1
View file @
d4883feb
...
...
@@ -147,10 +147,10 @@ class Node() :
>>>
node
.
search
(
25
)
>>>
node
.
suppression
(
12
,
2
)
True
>>>
node
>>>
node
.
suppression
(
3
,
2
)
True
>>>
node
Node
([
42
],
[
Node
([
4
]),
Node
([
58
])])
"""
(
found
,
index
)
=
recherche_dichotomique
(
value
,
self
.
keys
)
if
(
self
.
isLeaf
())
:
...
...
This diff is collapsed.
Click to expand it.
src/experimentation.py
0 → 100644
+
29
−
0
View file @
d4883feb
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 @
d4883feb
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