question archive Path with maximum Probability Given n paths with probability, please perform the following operations: (1) implement Kruskal's Algorithm to find the MST with maximum probability to go from node A to node B, and print the probability
Subject:Computer SciencePrice: Bought3
Path with maximum Probability Given n paths with probability, please perform the following operations: (1) implement Kruskal's Algorithm to find the MST with maximum probability to go from node A to node B, and print the probability. (2) if there is an available path but the total probability is below 0.05, print 0. For example: 0.7 1 2 0.9 0.8 3 the probability of the path: 0.9*0.8=0.72