priority-queue
Java priority queue implementation - memory locality
I am trying to implement an efficient priority queue in Java. I got to a good implementation of a binary heap but it doesn\'t have the ideal cache performance. For this I started studying the Van Emde[详细]
2023-02-22 05:23 分类:问答C++ STL Comparison class: how to parameterize comp-class behaviour?
i want to use a std::priority_queue container with a custom data-type and several comparison-criterions (i defined a functor for each of them; each of them are working on the same types).[详细]
2023-02-20 16:58 分类:问答Free implementation of "bounded priority queue" in C++
I\'m looking for a free software implementation of the bounded priority queue abstraction in C++. Basically, I need a data structure that will behave just like std::priority_queue but开发者_如何学Go w[详细]
2023-02-17 18:45 分类:问答JAVA: Possible to add a runnable thread into a queue?
I recently began working with Threads and I am trying to complete a Java implementation of the Looper class in Android.Basically I am making a Java class that puts threads into a queue that will then[详细]
2023-02-15 09:22 分类:问答How can I use a comparison function with more than 2 arguments with a c++ priority queue?
I have an object class that stores a database record.There is also a comparison class that can take in two of these records and an additional object that describes how the ordering should be done.I ne[详细]
2023-02-15 00:14 分类:问答How do you initialize a map that has a priority_queue as a value with the comparison object of the priority_queue?
What I would like to do is have a map that maps integer keys to priority_queues of pointers to a struct I have defined sorted by a comparison function I have also defined.[详细]
2023-02-11 10:08 分类:问答RabbitMQ reordering messages
RabbitMQ ticks all the boxes for the project I am planning, save one.I would have different workers listening on a queue and it is important that they process the newest messages (i.e., latest sequenc[详细]
2023-02-09 19:48 分类:问答Problem with Priority Queue
I\'m trying to use a priority queue in my code, and for some reason when I remove the objects, they aren\'t in order. Do you know what i\"m doing wrong?[详细]
2023-02-09 07:55 分类:问答Changing a LinkedList into a Priority Queue
I currently have a class that has 3 linkedlists of strings or ints that I use as a stack via a trio of addFirst and removeFirst commands. (Class reproduced below)[详细]
2023-02-08 11:20 分类:问答Java PriorityQueue not polling expected object
This is my first post here so feel free to point me in the right direction regarding formulating a question here.[详细]
2023-02-05 13:09 分类:问答
加载中,请稍侯......