Consider the following recurrence relations:
For all \(n > 1\),
\[T_1(n)=4T_1\!\left(\frac{n}{2}\right)+T_2(n)\]
\[T_2(n)=5T_2\!\left(\frac{n}{4}\right)+\Theta(\log_2 n)\]
Assume that for all \(n\leq 1\), \(T_1(n)=1\) and \(T_2(n)=1\).
Which one of the following options is correct?
Step 1: Solve for \(T_2(n)\) using the Master Theorem.
\[T_2(n) = 5T_2\left(\frac{n}{4}\right) + \Theta(\log_2 n)\]
Here \(a=5\), \(b=4\), so \(n^{\log_b a} = n^{\log_4 5} \approx n^{1.16}\). Since \(f(n)=\Theta(\log_2 n)\) grows polynomially slower than \(n^{\log_4 5}\), i.e. \(f(n) = O(n^{\log_4 5 - \epsilon})\) for some \(\epsilon>0\), Master Theorem Case 1 applies:
\[T_2(n) = \Theta\left(n^{\log_4 5}\right)\]
Step 2: Substitute \(T_2(n)\) into the recurrence for \(T_1(n)\).
\[T_1(n) = 4T_1\left(\frac{n}{2}\right) + T_2(n) = 4T_1\left(\frac{n}{2}\right) + \Theta\left(n^{\log_4 5}\right)\]
Here \(a=4\), \(b=2\), so \(n^{\log_b a} = n^{\log_2 4} = n^{2}\).
Step 3: Compare \(f(n) = n^{\log_4 5}\) with \(n^2\). Since \(\log_4 5 \approx 1.16 < 2\), \(f(n) = O(n^{2-\epsilon})\) for some \(\epsilon>0\), so Master Theorem Case 1 applies again.
\[T_1(n) = \Theta(n^{2})\]
\[\boxed{T_1(n) = \Theta(n^2)\ \text{(Option A)}}\]
In the diagram, the lines QR and ST are parallel to each other. The shortest distance between these two lines is half the shortest distance between the point P and the line QR. What is the ratio of the area of the triangle PST to the area of the trapezium SQRT?
Note: The figure shown is representative
