Linked Questions

45 votes
14 answers
12k views

In the 10 years I've been programming, I can count the number of data structures I've used on one hand: arrays, linked lists (I'm lumping stacks and queues in with this), and dictionaries. This isn't ...
Juliet's user avatar
  • 81.7k
38 votes
4 answers
23k views

What are the real world applications of Fibonacci heaps and binary heaps? It'd be great if you could share some instance when you used it to solve a problem. Edit: Added binary heaps also. Curious to ...
smatter's user avatar
  • 29.4k
32 votes
2 answers
9k views

Are Fibonacci heaps used in practice anywhere? I've looked around on SO and found answers to related questions (see below) but nothing that actually quite answers the question. There are good ...
kuzzooroo's user avatar
  • 7,448
12 votes
5 answers
6k views

Binomial Heap has quite special design. Personally I don't think this design is intuitive. Although posts such as What is the difference between binary heaps and binomial heaps? talks about diff and ...
Jackson Tale's user avatar
  • 25.9k
7 votes
5 answers
2k views

I need a container to store pairs, I have two operations: update value by key get the key with maximum value. For the first operation, map is a good structure. For the second operation, seems ...
user875367's user avatar
5 votes
2 answers
3k views

Is Dijkstra faster when using Fibonacci heap than with the Binary heap? I did some experiments implementing Fibonacci heap on my own and using it in Dijkstra, I also checked the ready-to-use Fibonacci ...
Karolina Andruszkiewicz's user avatar
5 votes
2 answers
1k views

I recently made an initial comparison of the running time of Dijkstra's algorithm using two data structures, the Java-based PriorityQueue (based on a binary heap, if I'm not mistaken), and a Fibonacci ...
Fiery Phoenix's user avatar
1 vote
2 answers
2k views

I am implementing the Fast Marching algorithm, which is some kind of continuous Dijkstra. As I read in many papers, the Fibonacci heap is the most adequate heap for this purpose. However, when ...
Javi's user avatar
  • 3,680
1 vote
1 answer
489 views

Something faster than std::priority_queue as a min heap? The original question is here. You can resolve the names generated by grpof with the demangler. With the help of the users there, I came to a ...
gsamaras's user avatar
  • 73.7k
0 votes
1 answer
484 views

First off, I apologize for my bad paint drawing of the graph. The weights are obviously not scaled. I am having a hard time coming up with the algorithms to solve a few problems. First, I want to ...
ShadyBears's user avatar
  • 4,237
3 votes
0 answers
453 views

Dijkstra's shortest paths algorithm is O(E log V) when we re-insert nodes into the priority queue. However, if we use constant-time decrease_key, and Fibonacci heap is advertised for this, then the ...
lukstafi's user avatar
  • 1,915