Most Reliable Path in a Probabilistic Graph
Problem
You are given a graph representing a spider web.
- The spider starts at node
Sand wants to reach nodeT. - Each edge
ehas a probability of breakingp(e)(0 <= p(e) <= 1).- If...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
