forked from hofmannol/AlgoDatSoSe25
Added PoC too help understanding the Code
This commit is contained in:
parent
0401aa42ee
commit
f033738d31
@ -121,6 +121,14 @@ class PriorityQueue:
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Proof of Concept
|
||||
testEntry = HeapEntry("A", 2)
|
||||
print(testEntry)
|
||||
testArray = MemoryArray([testEntry])
|
||||
print(testArray)
|
||||
print(testArray[Literal(0)])
|
||||
|
||||
# Queue Testing
|
||||
pq = PriorityQueue()
|
||||
try:
|
||||
pq.pop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user