heap-data-structure / binomial-heap

:cherries: Binomial heaps for JavaScript

Home Page:https://heap-data-structure.github.io/binomial-heap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binomial heap data structures for JavaScript. See docs. Parent is @heap-data-structure.

//
//    o       o           o--.             o
//    |\      |\          |\  \           /|\
//    o o  +  o o    =    o o  o    =    o o o
//      |       |           |  |\          | |\
//      o       o           o  o o         o o o
//                               |             |
//                               o             o
//

import {
  BinomialHeap,
  LazyBinomialHeap,
  BinomialTree,
  BinomialTreeWithParent,
} from '@heap-data-structure/binomial-heap';

import {increasing} from '@total-order/primitive';

let heaps = [
  new ( BinomialHeap( BinomialTreeWithParent ) )( increasing ) ,
  new ( BinomialHeap( BinomialTree ) )( increasing ) ,
  new ( LazyBinomialHeap( BinomialTree ) )( increasing ) ,
  new ( LazyBinomialHeap( BinomialTreeWithParent ) )( increasing ) ,
] ;

License Version Tests Dependencies GitHub issues Downloads

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

📜 Reference

About

:cherries: Binomial heaps for JavaScript

https://heap-data-structure.github.io/binomial-heap

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 94.3%Language:Shell 5.7%