retagged by
2,398 views
3 votes
3 votes

 

How many partial functions  are there from a set with m elements to a set with n elements?

Q. I cannot get the intuition how the solution arrived to be (n+1)^m

retagged by

3 Answers

5 votes
5 votes
m to n

Partial function is map from subset of m to n...

Suppose size of subset is k and k is always 0<=k<=n and there are n^k such mapping are possible...

Now there are mCk possible subsets are  of size k..

So from this we can find total no of partial functions..

= mC0 *n^0 + mC1 * n^1 +....+mCm *n^m

= (1+n)^m

Let's take m=2 and n=3

So =2c0 *3^0 + 2c1*3^1 + 2c2 * 3^2

   =   1+6+9 = 16

That is (n+1)^m = (3+1)^2 = 16

 

​​​​
edited by
0 votes
0 votes

Partial function: function + each element of domain can choose not to map any element in codomain (i.e at most one element of the second set) 

Related questions

2 votes
2 votes
1 answer
1
Aboveallplayer asked Oct 27, 2016
1,109 views
Consider a function f:A->B is bijective ..which of the following is INCORRECT?a)f-1 :B->A existb)f-1 : B->A uniquec)f-1 is bijectived) None of these
1 votes
1 votes
1 answer
3
vivek_mishra asked Feb 17, 2020
863 views
X AND Y is an arbitrary sets, F: $X\rightarrow Y$ show that a and b are equivalent F is one-oneFor all set Z and function g1: $Z\rightarrow X$ and g2: $Z\rightarrow X$, ...