The questions for the final exam will emphasize the most recent material similar to (but not limited to) the questions below. Some questions will be taken from earlier in the course. You may want to study the previous exams and review questions.
Given a directed graph G on which each edge (u,v) has an associated value r(u, v), which is a real number in the range between from 0 to 1 that represents the reliability of a communication channel from u to v. We interpret r(u, v) as the probability that the channel from u to v will not fail, and we assume that these probabilities are independent. Modify Dijkstra's algorithm to find the most reliable path between two given vertices. [Note: this is a challenging question intended to get you thinking about other ways in which priority-first search can be used. It won't be on the exam, but figuring it out will improve your knowledge in ways that could help you on the exam.]