Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

High performance tree and sorted map implementations for JavaScript in TypeScript

License

NotificationsYou must be signed in to change notification settings

streamich/sonic-forest

Repository files navigation

High performance (binary) tree and sorted map implementation for JavaScript in TypeScript.

Features

  • AVL tree implementation
  • AVL sorted map implementation
  • AVL sorted set implementation
  • Red-black tree implementation
  • Red-black tree sorted map implementation
  • Left-leaning Red-black tree insertion implementation
  • Radix tree implementation
  • Splay tree implementation
  • Various utility methods for binary trees

This package implements the fastest insertion into self-balancing binary tree out of anyNPM package. Both, AVL and Red-black tree insertion implementations ofsonic-forest a fasterthan inserts injs-sdsl implementation.

However, deletions from a binary tree are faster injs-sdsl. But, deletions insonic-forestdelete exactly the node, which contains the key. Unlike, injs-sdsl and all otherbinary tree libraries, where those libraries find the in-order-sucessor or -predecessor, whichis a leaf node, and delete that instead. As such, one can keep pointers tosonic-forest AVLand Red-black tree nodes, and those pointers will stay valid even after deletions.

About

High performance tree and sorted map implementations for JavaScript in TypeScript

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

[8]ページ先頭

©2009-2025 Movatter.jp