Tag Archives: heap

Min-Heap in Python

I recently wanted to implement a small event system where events can have different priorities. So for example the event with highest priority (lowest value) should be handled first. Python comes with a heapq module which can transform a list … Continue reading

Posted in Coding | Tagged , , , , , , | 4 Comments