Graphs_dart/tex/dart/pseudoKruscal.txt

10 lines
151 B
Plaintext
Raw Normal View History

2021-11-24 20:35:55 +03:00
kruscal(G, w):
A <- null
for v <20><> V[G]:
create_set(v)
sort(E)
for (u, v) <20><> E:
if find_set(u) != find_set(v):
A <- A + {(u,v)}
return A