@heap-data-structure/d-ary-heap

13.0.0 • Public • Published

🐙 @heap-data-structure/d-ary-heap

d-ary heap data structure library for JavaScript. See docs. Parent is @heap-data-structure.

import {increasing} from '@total-order/primitive';
import {makeheap} from '@heap-data-structure/d-ary-heap';
makeheap( 2 , increasing , swap , array , 0 , array.length ) ;
//        ^       ^         ^       ^     ^        ^
//      arity  ordering    swap   input [left  , right[
//                        method
//

import {DAryHeap} from '@heap-data-structure/d-ary-heap';
let heap = new DAryHeap( 2 , increasing ) ;
//                       ^       ^
//                     arity  ordering
//

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

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

📰 Description

This package contains a d-ary heap implementation that can be parametrized with any d > 0.

Package Sidebar

Install

npm i @heap-data-structure/d-ary-heap

Weekly Downloads

1

Version

13.0.0

License

AGPL-3.0

Unpacked Size

537 kB

Total Files

14

Last publish

Collaborators

  • raskat
  • aureooms