結果 : write and explain prim's algorithm with an example