Skip to content

Add a priority queue / heap with max size #8

Open
dblock opened this Issue Jan 27, 2011 · 1 comment

1 participant

@dblock
dblock commented Jan 27, 2011

It's a pretty common problem (and we have this problem :)) where you want a priority queue that "loses" items of lesser priority (has a max size). What do you think of extending heap?

@dblock
dblock commented Jan 27, 2011

It's as simple as ad/delete(pop), but not very efficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.