Python Tricks - Common Data Structures in Python(7)
PriorityQueuesApriorityqueueisacontainerdatastructurethatmanagesasetofrecordswithtotally-orderedkeys(forexample,anumericweightvalue)toprovidequickaccesstotherecordwiththesmallestorlargestkeyintheset.Y