結果 : explain prim's algorithm with suitable example