Skip to content
BlueRaja edited this page Jan 4, 2016 · 17 revisions

Adding the Priority Queue to your project

  1. Add Priority Queue/Priority Queue.csproj to your solution.
  2. Reference the Priority Queue project from any projects you want to use it from.
  3. Add using Priority_Queue to the top of any files you want to use it from.

Which implementation should I use?

This project comes with two IPriorityQueue implementations:

  • SimplePriorityQueue is thread-safe, contains safety checks, and is easy-to-use.
  • FastPriorityQueue is less convenient and safe, but has been optimized to be as absolutely fast as possible.

Click the above links to learn how to use each one.

Clone this wiki locally