Live data from Hacker News

Heap Data Structure in JavaScript

stackfull.dev

1–3 of 3 posts

Re: Heap Data Structure in JavaScript

#2
Binary heaps are often used for priority queues and priority queues are used everywhere. Especially if you have a huge stream of data and only want to keep track of a small number matching a specific ranking. This is used in computer games, event driven simulation among many others. Priority queues are extremely handy and useful. I've just learned about them and I'm always trying to find places to implement them for improved benefit. Nice read overall!