Do you think a hash table is a good data structure for implementing a priority queue?
Any ideas?
coding101
0
Junior Poster in Training
Recommended Answers
Jump to PostIf you look at the "All Known Implementing Classes:" for Interface Collection<E> you'll find a number of priority queue implementations. Which one you chose depends on your exact requirements.
If you have to build it yourself, have a look at TreeSet using a Comparator that sorts the items in priority …
All 3 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
Lamthuy
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.