a. If $i$ distinct integers $r_1, r_2, \ldots,r_i$, i $\leq n$, are randomly selected (one after other) from n distinct integers, what is the probability that $r_1 < r_2 < \cdots < r_i$?
b. Does the probability you got in part a of the question change if < is replaced with $\leq$?
I know that a question similar to part 'a' of this question can be solved using the concept of Decision tree that orders the elements of the list, an application of which is to analyse the complexity of comparison-based sorting algorithm.
I came across a solution to part 'a' of the question that says the required probability is $C(n, i)/P(n,i)$, which is nothing but equal to the solution of the Decision tree based approach, which is $1/i!$.
What I don't understand is this - how $C(n,i)$ is equal to favourable number of outcomes and $P(n,i)$ is equal to total number of outcomes?
Figure: A decision tree for sorting three distinct elements.
Image taken from Discreet Mathematics and its Applications by Kenneth Rosen

$C(n,i)$ chooses $i$ integers from $n$ integers without giving importance to their order. Given such a set of $i$ integers, we can first order them in ascending order, and then assign the corresponding values to $r_1,r_2\dots r_i$ so that $r_1 \lt r_2 \lt \dots \lt r_i $.
$P(n,i)$ counts the total ways. Why? The number of choices for $r_1$ is $n$, for $r_2$ is $n-1$ and so on. That gives $$n(n-1)(n-2)\dots (n-i+1)=\frac{n!}{(n-i)!} = P(n,i) $$