I am studying algorithms from CLRS book.I am trying to understand the difference between

  • probability of hiring ith person from n persons
  • probability of hiring ith person from n persons based on ranks.Each person will be allotted a rank after interviewing and if his rank is greater than the rank of the previously hired person, he gets recruited too



calculating the probability we know the answer for the first one is 1/(n-i).
The answer for the second is 1/i in the CLRS book. I am unable to understand the concept here.How is it 1/i?Can it also be 1/(n-i) taking in ranks too?