From f033738d31127a0ef368390f3bf2a5f153203fae Mon Sep 17 00:00:00 2001 From: schoeffelbe82781 Date: Sun, 13 Apr 2025 13:47:49 +0200 Subject: [PATCH] Added PoC too help understanding the Code --- schoeffelbe/priorityQueue.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/schoeffelbe/priorityQueue.py b/schoeffelbe/priorityQueue.py index d7e9238..c5fb212 100644 --- a/schoeffelbe/priorityQueue.py +++ b/schoeffelbe/priorityQueue.py @@ -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()