All Projects → mourner → Flatqueue

mourner / Flatqueue

Licence: isc
A very fast and simple JavaScript priority queue

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Flatqueue

Lecture
王道考研机试指南(第二版) 例题代码
Stars: ✭ 73 (-25.51%)
Mutual labels:  algorithms, data-structures
Algorithms
Algorithms and data structures implemented in JavaScript with explanations, for further readings
Stars: ✭ 99 (+1.02%)
Mutual labels:  algorithms, data-structures
Algorithmic Toolbox San Diego
✔ My Solutions of (Algorithmic-Toolbox ) Assignments from Coursera ( University of California San Diego ) With "Go In Depth" Part Which Contains More Details With Each of The Course Topics
Stars: ✭ 78 (-20.41%)
Mutual labels:  algorithms, data-structures
Technical Interview Guide
My learning material for technical interviews!
Stars: ✭ 76 (-22.45%)
Mutual labels:  algorithms, data-structures
Softuni
SoftUni Courses
Stars: ✭ 98 (+0%)
Mutual labels:  algorithms, data-structures
Ctci 6th Edition Php
Cracking the Coding Interview 6th Ed. PHP Solutions
Stars: ✭ 76 (-22.45%)
Mutual labels:  algorithms, data-structures
Awesome Coding Javascript
📌 持续构建个人的源码库(JavaScript 原生、常用库、数据结构、算法)
Stars: ✭ 88 (-10.2%)
Mutual labels:  algorithms, data-structures
Cs61b
Data Structures, Spring 2019
Stars: ✭ 67 (-31.63%)
Mutual labels:  algorithms, data-structures
Algorithms
In case you want to contribute, ping on https://gitter.im/NITSkmOS/algo.
Stars: ✭ 95 (-3.06%)
Mutual labels:  algorithms, data-structures
E Maxx Eng
Translation of http://e-maxx.ru into English
Stars: ✭ 1,238 (+1163.27%)
Mutual labels:  algorithms, data-structures
Daily Coding Problem
Self-implemented python solution for https://dailycodingproblem.com every day.
Stars: ✭ 75 (-23.47%)
Mutual labels:  algorithms, data-structures
C
Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.
Stars: ✭ 11,897 (+12039.8%)
Mutual labels:  algorithms, data-structures
Coursera Specializations
Solutions to assignments of Coursera Specializations - Deep learning, Machine learning, Algorithms & Data Structures, Image Processing and Python For Everybody
Stars: ✭ 72 (-26.53%)
Mutual labels:  algorithms, data-structures
Haskell
Stars: ✭ 91 (-7.14%)
Mutual labels:  algorithms, data-structures
Coding Ninjas Data Structures And Algorithms In Python
Solved problems and assignments of DSA course taught by Coding Ninjas team
Stars: ✭ 70 (-28.57%)
Mutual labels:  algorithms, data-structures
Leetcode
My Python Solutions for Leetcode
Stars: ✭ 80 (-18.37%)
Mutual labels:  algorithms, data-structures
Buckets Js
A complete, fully tested and documented data structure library written in pure JavaScript.
Stars: ✭ 1,128 (+1051.02%)
Mutual labels:  data-structures, priority-queue
Ctci 6th Edition
Cracking the Coding Interview 6th Ed. Solutions
Stars: ✭ 9,328 (+9418.37%)
Mutual labels:  algorithms, data-structures
Splay Tree
Fast splay-tree data structure
Stars: ✭ 80 (-18.37%)
Mutual labels:  algorithms, data-structures
Algorithms And Data Structures
JavaScript Algorithms and Data Structures Masterclass course on Udemy by Colt Steele
Stars: ✭ 82 (-16.33%)
Mutual labels:  algorithms, data-structures

flatqueue Build Status

A very fast binary heap priority queue in JavaScript. Similar to tinyqueue, but stores the queue as two flat arrays of item ids and their numeric priority values respectively (without a way to specify a comparator function). This makes the queue more limited, but several times faster.

const q = new FlatQueue();

for (let i = 0; i < items.length; i++) {
    q.push(i, items[i].value); // push an item by passing its id and value
}

q.peekValue(); // top item value
q.peek(); // top item index
q.pop(); // remove and return the top item index
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].