computer science question Transcribed Image Text: Q} Solve the below programming problem using Python

computer science question Transcribed Image Text: Q} Solve the below programming problem using Python
Tyrion is learning game theory to impress the queen.Lord Varys wanted to test the
learning of Tyrion so he presented him with a problem on min-max. Tyrion in
solving the problem.
Given a tree with N nodes rooted at node 1. Each node (U) of the tree is
associated with a pair of values (AU, Bu). You need to find the value of result (
R).
N N
EEF(U, V)
U=1 V=1
R
F(U, V)
MIN(MAX(AU, Ay), MAX(By, By)) ifVlies in subtree of U
otherwise
Input
5
14523
52413
12
13
24
25
Output
30

-25-


Buy plagiarism free, original and professional custom paper online now at a cheaper price. Submit your order proudly with us



Essay Hope