recategorized by
633 views
1 votes
1 votes

Let $n, m$ and $k$ be three positive integers such that $n \geq m \geq k$. Let $S$ be a subset of $\left \{ 1, 2,\dots, n \right \}$ of size $k$. Consider sampling a function $f$ uniformly at random from the set of all functions mapping $\left \{ 1,\dots, n \right \}$ to $\left \{ 1,\dots, \text{m} \right \}$. What is the probability that $f$ is not injective on the set $S$, i.e., there exist $i,j  \in S$ such that $f(i) = f(j)$?

In the following, the binomial coefficient $\binom{n}{k}$ counts the number of $k$-element subsets of an $n$-element set.

  1. $1-\frac{k!}{k^{k}}$
  1. $1-\frac{m!}{m^{k}}$
  1. $1-\frac{k!\binom{m}{k}}{m^{k}}$
  1. $1-\frac{k!\binom{n}{k}}{n^{k}}$
  1. $1-\frac{k!\binom{n}{k}}{m^{k}}$
recategorized by

1 Answer

0 votes
0 votes
Option $(C)$

$P(\text{f is not injective}) = 1 – P(\text{f is injective})$

$= 1 – \frac{\text{injective functions}}{\text{total fuctions}}$

$= 1 – \frac{\text{(choosing k values from m)} * \text{(permuting each value from set S to these k values)}}{m^k}$

$= 1 – \frac{\binom{m}{k} \times k!}{m^k}$
Answer:

Related questions

546
views
2 answers
2 votes
soujanyareddy13 asked Mar 25, 2021
546 views
Fix $n\geq 6$. Consider the set $\mathcal{C}$ of binary strings $x_{1}, x_{2} \dots x_{n}$ of length $n$ such that the bits satisfy the following set of equalities, ... $3$ then $\left | \mathcal{C} \right |=1$.
1.1k
views
1 answers
1 votes
soujanyareddy13 asked Mar 25, 2021
1,106 views
What is the probability that at least two out of four people have their birthdays in the same month, assuming their birthdays are uniformly distributed over the twelve months? ... 5}{8}$\frac{5}{12}$\frac{41}{96}$\frac{55}{96}$
844
views
1 answers
1 votes
soujanyareddy13 asked Mar 25, 2021
844 views
A matching in a graph is a set of edges such that no two edges in the set share a common vertex. Let $G$ be a graph on $n$ $\textit{vertices}$ in which there is a subset $M$ ... \right )^{m}$1-\left ( 1-p\left ( 1-p \right ) \right )^{m}$
592
views
1 answers
1 votes
soujanyareddy13 asked Mar 25, 2021
592 views
Lavanya and Ketak each flip a fair coin (i.e., both heads and tails have equal probability of appearing) $n$ times. What is the probability that Lavanya sees more heads than ketak?In ... \right )$\sum_{i=0}^{n}\frac{\binom{n}{i}}{2^{n}}$