Giter Club home page Giter Club logo

rbt's Introduction

RBT

Personal Implementation of a Red and Black Self Sorting Binary Tree

Project started years ago with a Red and Black Tree I implemented in College using Java. This code still exists in the current codebase. Recently I wanted to modernize that implementation and translate it into Python. In addition, an ASCII Tree Visualization system was thrown in, using ChatGPT, as a testing tool to add to the legacy helper functions.

rbt's People

Contributors

taylorlcling avatar

Watchers

 avatar

rbt's Issues

Error in Insertion

Found an Error in the insertion method that needs to be investigated.

To Recreate

  1. Create Tree with nodes inserted in this order [6, 5, 9, 10, 17, 7, 4, 15].
  2. Then insert a node with data 11

Description
11 Should be simply inserted as the left child of 15, however something weird happens where a 2nd Node(15) appears and becomes siblings with the original Node(15). Nodes begin to duplicate in a way that is not consistent with the correct self sorting of a RBTree.

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.