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
b814c420
Commit
b814c420
authored
1 year ago
by
Loic Scoth
Browse files
Options
Downloads
Patches
Plain Diff
initialisation des classes
parent
edd064af
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/BTree.py
+9
-6
9 additions, 6 deletions
src/BTree.py
src/node.py
+8
-6
8 additions, 6 deletions
src/node.py
with
17 additions
and
12 deletions
src/BTree.py
+
9
−
6
View file @
b814c420
class
Btree
()
:
def
__init__
(
self
,
size
,
string
)
:
self
.
size
=
size
self
.
string
=
string
def
__init__
(
self
,
name
,
root
)
:
self
.
name
=
name
self
.
root
=
root
#def search() :
#def insertion():
#def createNode() :
#def delete() :
#def linear() :
#def createTree() :
#def height() :
#def isArbre() :
\ No newline at end of file
#def isArbre() :
#def getNbKeys () :
#def getSize () :
#def changeRoot() :
#def isEqual() :
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/node.py
+
8
−
6
View file @
b814c420
class
node
()
:
def
__init__
(
self
,
size
,
keys
,
child
,
leaf
)
:
self
.
size
=
size
def
__init__
(
self
,
keys
,
child
,
kmin
,
kmax
)
:
self
.
keys
=
keys
self
.
child
=
child
self
.
leaf
=
leaf
self
.
kmin
=
kmin
self
.
kmax
=
kmax
#def getSize() :
#def getSize
Node
() :
#def getPos() :
#def setNew() :
#def
\ No newline at end of file
#def setNewChild() :
#def removeChild() :
#def getSize() :
#def isLeaf() :
\ No newline at end of file
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