GithubHelp home page GithubHelp logo

baznick / red-black-tree Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 6 KB

Red-Black-Tree using Python

Python 100.00%
red-black-tree red-black-trees red-black-tree-python python-3 algorithms-and-data-structures red-black-binary-tree

red-black-tree's Introduction

Red-Black-Tree

Red-Black-Tree realisation using Python. Includes followings methods:

  1. Create tree;
  2. Delete nodes from the tree;
  3. Find node in the tree;
  4. Display all nodes;
  5. Display height of the tree;
  6. Display number of black nodes;
  7. Rotation methods (right rotation, left rotation, left-right rotation, right-left rotation);

Also you may want to see a small wiki about this realisation: https://github.com/BazNick/Red-Black-Tree/wiki

Красно-Черное-Дерево

Реализация Красно-Черного Дерева на Python. Включает следующие методы:

  1. Create tree (Создание дерева, то есть его узлов);
  2. Delete nodes from the tree (Удаление узлов из дерева);
  3. Find node in the tree (Нахождение элемента в дереве);
  4. Display all nodes (Выводит все элементы, которые есть в дереве);
  5. Display height of the tree (Выводит высоту дерева);
  6. Display number of black nodes (Выводит количество черных узлов);
  7. Rotation methods (right rotation, left rotation, left-right rotation, right-left rotation) (Методы вращения: левое, правое, лево-правое и право-левое);

Также можно посмотреть небольшое вики по реализации: https://github.com/BazNick/Red-Black-Tree/wiki

red-black-tree's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

kawaki46

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.