by meta · 13y ago · 0 comments
See here for a very good writeup of priority queues and variants. http://algs4.cs.princeton.edu/24pq/
(not hugely familiar with Java so this stuff might be wrong) The implementation presented has some bad timing issues (List.Contains is a linear search). I think List.Remove is also a linear search. As well this implementation doesn't seem to do Point (1).