Skip to content Skip to sidebar Skip to footer
Showing posts with the label Heap

Unusual Result From Heappop?

I have a simple heap defined as a list of lists. I was using heapop from the heapq module to extrac… Read more Unusual Result From Heappop?

Looking For An Inverted Heap In Python

I'd like to comb off the n largest extremes from a timeseries. heapq works perfectly for the nl… Read more Looking For An Inverted Heap In Python