Step 1: Recall when quicksort performs worst.
In quicksort, the worst-case situation arises when the chosen pivot ends up at an extreme end of the array after partitioning.
This happens when the pivot is either the smallest or the largest element, producing one subarray of size $n-1$ and another of size zero.
Step 2: Identify the unfavorable pivot choices.
The array contains 25 distinct elements, and the pivot is selected uniformly at random.
Only two elements can lead to the worst-case split:
Thus, the number of unfavorable pivot choices is 2.
Step 3: Compute the probability.
Since each of the 25 elements is equally likely to be chosen as the pivot, the probability of selecting a worst-case pivot in the first partition is:
\[ \text{Probability} = \frac{2}{25} = 0.08 \]
Step 4: Final answer.
The computed probability is already expressed to two decimal places.
\[ \boxed{0.08} \]
Let πΊ(π, πΈ) be a simple, undirected, edge-weighted graph with unique edge weights.
Which of the following statements about the minimum spanning trees (MST)
of πΊ is/are true?

Let πΊ(π, πΈ) be an undirected, edge-weighted graph with integer weights. The weight
of a path is the sum of the weights of the edges in that path. The length of a path is
the number of edges in that path.
Let π βπ be a vertex in πΊ. For every π’βπ and for every π β₯0, let ππ(π’) denote
the weight of a shortest path (in terms of weight) from π to π’ of length at most π. If
there is no path from π to π’ of length at most π, then ππ(π’) = β.
Consider the statements:
S1:
For every π β₯0 and π’ βπ, ππ+1(π’) β€ππ(π’).
S2:
For every (π’, π£) βπΈ, if (π’, π£) is part of a shortest path (in terms of
weight) from π to π£, then for every πβ₯ 0, ππ(π’) β€ππ(π£).
Which one of the following options is correct?