Giter Club home page Giter Club logo

binary-search-tree / red-black-tree Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 4.79 MB

:christmas_tree: Red-black tree library for JavaScript

Home Page: https://binary-search-tree.github.io/red-black-tree

License: GNU Affero General Public License v3.0

JavaScript 98.14% Shell 1.86%
search javascript worst-case data-structures red-black-tree computer-science binary-search-trees balanced-binary-search-trees agpl trees binary-trees balanced-search-trees search-trees

red-black-tree's Introduction

import {from} from '@binary-search-tree/red-black-tree';
import {increasing} from '@total-order/primitive';
import {range} from '@iterable-iterator/range';
let tree = from( increasing , range( 100000 ) ) ;

Red-black tree library for JavaScript. See documentation. Parent is js-bst.

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

red-black-tree's People

Contributors

a-flying-potato avatar greenkeeper[bot] avatar greenkeeperio-bot avatar make-github-pseudonymous-again avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

red-black-tree's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Profile

  • Evaluate whether instanceof checks are faster than isLeaf() calls. Not necessary since we do not use Leaf anymore.
  • Rewrite delete_caseX cascade to forward precomputed sibling.
  • Find out whether dummy Leaf nodes _color field can be removed. Not necessary since we do not use Leaf anymore.
  • Find out whether dummy Leaf nodes can be easily replaced by null (see #104).
  • Rewrite insert_caseX cascade to forward precomputed grandparent, potentiall rewritting uncle = (n) => _uncle(n, grandparent(n));
  • Break tail recursion of delete_caseX and insert_caseX cascades somehow.

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.