All Projects → STRd6 → priority_queue

STRd6 / priority_queue

Licence: other
A JavaScript PriorityQueue

Programming Languages

coffeescript
4710 projects

Projects that are alternatives of or similar to priority queue

Coding Ninjas Java Solutions
This will have solutions to all the problems that are included in Coding Ninja's 2020 Java Course. Star the repo if you like it.
Stars: ✭ 32 (+14.29%)
Mutual labels:  priority-queue
Buckets Swift
Swift Collection Data Structures Library
Stars: ✭ 106 (+278.57%)
Mutual labels:  priority-queue
Advanced-Shortest-Paths-Algorithms
Java Code for Contraction Hierarchies Algorithm, A-Star Algorithm and Bidirectional Dijkstra Algorithm. Tested and Verified Code.
Stars: ✭ 63 (+125%)
Mutual labels:  priority-queue
Sidekiq Priority
Prioritize Sidekiq jobs within queues
Stars: ✭ 47 (+67.86%)
Mutual labels:  priority-queue
Flatqueue
A very fast and simple JavaScript priority queue
Stars: ✭ 98 (+250%)
Mutual labels:  priority-queue
Rxjavapriorityscheduler
RxPS - RxJavaPriorityScheduler - A RxJava Priority Scheduler library for Android and Java applications
Stars: ✭ 138 (+392.86%)
Mutual labels:  priority-queue
High Speed Priority Queue For C Sharp
A C# priority queue optimized for pathfinding applications
Stars: ✭ 777 (+2675%)
Mutual labels:  priority-queue
priority-queue-dictionary
A Pythonic indexed priority queue
Stars: ✭ 74 (+164.29%)
Mutual labels:  priority-queue
Sorted Queue
A sorted queue, based on an array-backed binary heap
Stars: ✭ 102 (+264.29%)
Mutual labels:  priority-queue
super-workers
🐴 Distribute load on front-end via parallelism
Stars: ✭ 93 (+232.14%)
Mutual labels:  priority-queue
Buckets Js
A complete, fully tested and documented data structure library written in pure JavaScript.
Stars: ✭ 1,128 (+3928.57%)
Mutual labels:  priority-queue
Kue
Kue is a priority job queue backed by redis, built for node.js.
Stars: ✭ 9,316 (+33171.43%)
Mutual labels:  priority-queue
Data Structures
A collection of powerful data structures
Stars: ✭ 2,534 (+8950%)
Mutual labels:  priority-queue
Libgenerics
libgenerics is a minimalistic and generic library for C basic data structures.
Stars: ✭ 42 (+50%)
Mutual labels:  priority-queue
ctl
My variant of the C Template Library
Stars: ✭ 105 (+275%)
Mutual labels:  priority-queue
Iris
Convenient wrapper library to perform network queries using Retrofit and Android Priority Job Queue (Job Manager)
Stars: ✭ 17 (-39.29%)
Mutual labels:  priority-queue
Containers
This library provides various containers. Each container has utility functions to manipulate the data it holds. This is an abstraction as to not have to manually manage and reallocate memory.
Stars: ✭ 125 (+346.43%)
Mutual labels:  priority-queue
DEPRECATED-data-structures
A collection of powerful data structures
Stars: ✭ 2,648 (+9357.14%)
Mutual labels:  priority-queue
heap-js
Efficient Binary heap (priority queue, binary tree) data structure for JavaScript / TypeScript. Includes JavaScript methods, Python's heapq module methods, and Java's PriorityQueue methods.
Stars: ✭ 66 (+135.71%)
Mutual labels:  priority-queue
Fastpriorityqueue.js
a fast heap-based priority queue in JavaScript
Stars: ✭ 240 (+757.14%)
Mutual labels:  priority-queue

Description

A priority queue is a handy data structure with many uses. From graph search algorithms to simple job queues, having this in your toolbelt will help to give you a solid foundation.

Features

  • Simple to use and understand.
  • Creates a single PriorityQueue constructor.
  • Instantiate via PriorityQueue() or new PriorityQueue()
  • Offers both highest first and lowest first ordering.
  • Test suite included.

The default is highest priority first, but when doing something like A* you want lowest priority first... it handles it: queue = PriorityQueue({low: true}); Boom!

Example Usage

# Highest priority first
queue = PriorityQueue()

queue.push("b", 5)
queue.push("a", 10)

queue.pop() # => "a"
queue.pop() # => "b"

# Lowest priority first
queue = PriorityQueue
  low: true

queue.push("x", 5)
queue.push("y", 10)

queue.pop() # => "x"
queue.pop() # => "y"

License

MIT

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].