diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..13566b81b018ad684f3a35fee301741b2734c8f4 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..69ace3f6affaf674f40a55887f3d6f3564afd626 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="openjdk-21" project-jdk-type="JavaSDK"> + <output url="file://$PROJECT_DIR$/out" /> + </component> +</project> \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000000000000000000000000000000000..dcae0fe868ba20e0501439bc012f7f80b269d1ad --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/.idea/projet-s-6-loic-scoth-etu-mamadulamarana-bah-etu.iml" filepath="$PROJECT_DIR$/.idea/projet-s-6-loic-scoth-etu-mamadulamarana-bah-etu.iml" /> + </modules> + </component> +</project> \ No newline at end of file diff --git a/.idea/projet-s-6-loic-scoth-etu-mamadulamarana-bah-etu.iml b/.idea/projet-s-6-loic-scoth-etu-mamadulamarana-bah-etu.iml new file mode 100644 index 0000000000000000000000000000000000000000..64b24027cad11b583341b158316a0503e8ddc533 --- /dev/null +++ b/.idea/projet-s-6-loic-scoth-etu-mamadulamarana-bah-etu.iml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="JAVA_MODULE" version="4"> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$" /> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> + <component name="SonarLintModuleSettings"> + <option name="uniqueId" value="54686edf-f665-4daa-ac0a-2680fb105612" /> + </component> +</module> \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/5/6/568304535190e550fe608496a7eb15660a6ff1bf b/.idea/sonarlint/issuestore/5/6/568304535190e550fe608496a7eb15660a6ff1bf new file mode 100644 index 0000000000000000000000000000000000000000..9c532c64da5405836446af9b6189e390902791c4 --- /dev/null +++ b/.idea/sonarlint/issuestore/5/6/568304535190e550fe608496a7eb15660a6ff1bf @@ -0,0 +1,10 @@ + +dpython:S2208"GImport only needed names or import the module and then use its members.(�ϗ������ +^python:S2208"GImport only needed names or import the module and then use its members.(���{ +zpython:S5717"]Change this default value to "None" and initialize this parameter inside the function/method.(Җ������� +apython:S100"JRename method "isLeaf" to match the regular expression ^[a-z_][a-z0-9_]*$.(���� +gpython:S100"KRename method "getSize" to match the regular expression ^[a-z_][a-z0-9_]*$.(��������� +dpython:S100,"MRename method "is_ArbreB" to match the regular expression ^[a-z_][a-z0-9_]*$.(ס�� +kpython:S3776O"TRefactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.(���* +Ipython:S1481�"+Remove the unused local variable "removed".(ϩ������� +jpython:S100�"MRename method "splitNode" to match the regular expression ^[a-z_][a-z0-9_]*$.(�а������ \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/8/e/8e25d77b0bc09618ec9e5f3c564701ae66725cd6 b/.idea/sonarlint/issuestore/8/e/8e25d77b0bc09618ec9e5f3c564701ae66725cd6 new file mode 100644 index 0000000000000000000000000000000000000000..8b15b1323dee2f8dce3c78ce3975b912447e815b --- /dev/null +++ b/.idea/sonarlint/issuestore/8/e/8e25d77b0bc09618ec9e5f3c564701ae66725cd6 @@ -0,0 +1,5 @@ + +_python:S2208"GImport only needed names or import the module and then use its members.(���� +dpython:S2208"GImport only needed names or import the module and then use its members.(�ϗ������ +6python:S125"Remove this commented out code.(���� +dpython:S1008"MRename method "isBalance" to match the regular expression ^[a-z_][a-z0-9_]*$.(�Ⱦ� \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d b/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/issuestore/e/b/eb4c3670af62b823485c7a7f97d322622ae03449 b/.idea/sonarlint/issuestore/e/b/eb4c3670af62b823485c7a7f97d322622ae03449 new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/issuestore/f/5/f58fdffa3a23bb00ce07edfa702cfc576a205c15 b/.idea/sonarlint/issuestore/f/5/f58fdffa3a23bb00ce07edfa702cfc576a205c15 new file mode 100644 index 0000000000000000000000000000000000000000..5eaec97b745ab9ca200642947cb6fe66e5690d04 --- /dev/null +++ b/.idea/sonarlint/issuestore/f/5/f58fdffa3a23bb00ce07edfa702cfc576a205c15 @@ -0,0 +1,5 @@ + +_python:S2208"GImport only needed names or import the module and then use its members.(���� +^python:S2208"GImport only needed names or import the module and then use its members.(���{ +qpython:S117"ZRename this local variable "childKeys" to match the regular expression ^[_a-z][a-z0-9_]*$.(�ʦ� +upython:S117"YRename this local variable "nodeKeys" to match the regular expression ^[_a-z][a-z0-9_]*$.(Է������ \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb new file mode 100644 index 0000000000000000000000000000000000000000..e17a54534e210d984253cb34f7d8ae995dc91c3a --- /dev/null +++ b/.idea/sonarlint/issuestore/index.pb @@ -0,0 +1,11 @@ + +9 + README.md,8\e\8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +< +src/BTree.py,8\e\8e25d77b0bc09618ec9e5f3c564701ae66725cd6 +; +src/Node.py,5\6\568304535190e550fe608496a7eb15660a6ff1bf +; +src/util.py,e\b\eb4c3670af62b823485c7a7f97d322622ae03449 +D +src/Visualization.py,f\5\f58fdffa3a23bb00ce07edfa702cfc576a205c15 \ No newline at end of file diff --git a/.idea/sonarlint/securityhotspotstore/5/6/568304535190e550fe608496a7eb15660a6ff1bf b/.idea/sonarlint/securityhotspotstore/5/6/568304535190e550fe608496a7eb15660a6ff1bf new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/securityhotspotstore/8/e/8e25d77b0bc09618ec9e5f3c564701ae66725cd6 b/.idea/sonarlint/securityhotspotstore/8/e/8e25d77b0bc09618ec9e5f3c564701ae66725cd6 new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d b/.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/securityhotspotstore/e/b/eb4c3670af62b823485c7a7f97d322622ae03449 b/.idea/sonarlint/securityhotspotstore/e/b/eb4c3670af62b823485c7a7f97d322622ae03449 new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/securityhotspotstore/f/5/f58fdffa3a23bb00ce07edfa702cfc576a205c15 b/.idea/sonarlint/securityhotspotstore/f/5/f58fdffa3a23bb00ce07edfa702cfc576a205c15 new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/securityhotspotstore/index.pb b/.idea/sonarlint/securityhotspotstore/index.pb new file mode 100644 index 0000000000000000000000000000000000000000..e17a54534e210d984253cb34f7d8ae995dc91c3a --- /dev/null +++ b/.idea/sonarlint/securityhotspotstore/index.pb @@ -0,0 +1,11 @@ + +9 + README.md,8\e\8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +< +src/BTree.py,8\e\8e25d77b0bc09618ec9e5f3c564701ae66725cd6 +; +src/Node.py,5\6\568304535190e550fe608496a7eb15660a6ff1bf +; +src/util.py,e\b\eb4c3670af62b823485c7a7f97d322622ae03449 +D +src/Visualization.py,f\5\f58fdffa3a23bb00ce07edfa702cfc576a205c15 \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="" vcs="Git" /> + </component> +</project> \ No newline at end of file diff --git a/DiagramProjet.png b/DiagramProjet.png new file mode 100644 index 0000000000000000000000000000000000000000..219a87f1ee3c4c491ac46985914d5df81d2e8bf5 Binary files /dev/null and b/DiagramProjet.png differ diff --git a/README.md b/README.md index 0df850b0b91f0c727df69ef20696bfefa734fb48..ff2a03c93046840e023278f4164e8084e8f938d2 100644 --- a/README.md +++ b/README.md @@ -1,93 +1,71 @@ # Projet - L3 - S6 +## authors +Mamadou Lamarana Bah +Loïc Scoth -## Getting started +## Description du projet -To make it easy for you to get started with GitLab, here's a list of recommended next steps. +Le projet consiste à la création et à la représentation d'un arbre binaire, constitué de noeud et de feuilles, que nous créons. +Celui-ci est modulable, nous pouvons ajouter ou supprimer des noeuds mais également rechercher l'emplacement d'un noeud dans cet arbre. -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! +## Status -## Add your files +En cours, Suppression à terminer -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: +## UML -``` -cd existing_repo -git remote add origin https://gitlab.univ-lille.fr/chabane.djeraba/projet-l3-s6.git -git branch -M main -git push -uf origin main -``` +Voici un UML simple de notre projet : -## Integrate with your tools + -- [ ] [Set up project integrations](https://gitlab.univ-lille.fr/chabane.djeraba/projet-l3-s6/-/settings/integrations) +### Semaine 1 -## Collaborate with your team +Mise en place du projet, compréhension du sujet et création des premières classes. +Début dichotomie. -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) +### semaine 2 -## Test and Deploy +Fin dichotomie, création de search et insert. -Use the built-in continuous integration in GitLab. +### semaine 3 -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) +Création documentation, création util et changement d'emplacement des méthodes pour plus de clarté. +Début de la méthode split. -*** +### semaine 4 -# Editing this README +Début des tests, avancé sur split et insertion. -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template. +### semaine 5 -## Suggestions for a good README +Suite des tests, suite d'insertion. -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. +### semaine 6 -## Name -Choose a self-explaining name for your project. +Insertion suite + quelques compléments de tests. -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. +### semzine 7 -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. +Fin insertion. -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. +### semaine 8 -## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. +Test Btree, création de la méthode suppression. -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. +### semaine 9 -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. +Création linéarisation et première représentation(classe visualization). -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. +### semaine 10 -## Contributing -State if you are open to contributions and what your requirements are for accepting them. +suite suppression, création de méthode complémentaire (isArbreB) et rectification des tests suite à une modification du code. -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. +### semaine 11 -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. +Suite suppression, fonctionne pour le cas d'une feuille. -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. +### emaine 12 -## License -For open source projects, say how it is licensed. - -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. +Création du Readme, suite suppression. \ No newline at end of file