Problem I have a list of objects and a query. I need to rank the objects, based on how do […]

# Tag: priority-queue

## Priority queue implementation in C#

Problem My application has a thread for handling database inserts and updates. Data is added by other threads to a […]

## Setup ordering in priority blocking queue

Problem I have a PriorityBlockingQueue in which I am adding SocketHolder. And let’s say current datacenter where this code is […]

## Generic Min Heap Implementation in Java

Problem There is a Min-Heap implementation in Java. BubbleUp() and BubbleDown() could have been coded using recursion but I prefer […]

## Prioritize objects using PriorityQueue and custom comparator in Java

Problem I have a list of objects and a query. I need to rank the objects, based on how do […]

## Java queue with dynamic priority flag

Problem I need to build a queue where the elements will be added and removed in chronological order by default. […]

## Generic PriorityQueue (Min-Heap) implementation

Problem I was trying to implement a generic PriorityQueue in C#. Below is my implementation which works fine as per […]

## SortedStack implementation in Java

Problem This is a data structure that supports the push(), pop() and isEmpty() operations and returns the least element on […]

## Binary heap (priority queue) implementation in JavaScript

Problem I wrote this heap implementation because I need it to run Dijkstra’s algorithm to find paths in a game […]

##
ObservablePriorityQueue Implementation

Problem I have a requirement in my current project that will need a Prioritised Queue that supports the IObservable interface. […]

- 1
- 2