

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


a
b
d
h
e
f
g
c
class PriorityQueueEntry: def init(self,x,y): self.key = x self.val = y
def getKey(self): return self.key
def getValue(self): return self.val
def setValue(self, newValue): self.val = newValue
def lt(self,other): return self.key < other.key
def gt(self,other): return self.key > other.key
def eq(self, other): return self.val == other.val
def hash(self): return self.key