Skip to content

Commit dbb06f6

Browse files
committed
Add Prims heapq import statement
1 parent fa10b9a commit dbb06f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Seminars/sem_14/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
- При използването на *Binary Heap* сложността е *O(E\*logV)*.
4646

4747
```python
48+
from heapq import heappush, heappop
49+
4850
def prim(start, V, graph):
4951
visited = set()
5052
pq = [(0, start)]

0 commit comments

Comments
 (0)