next up previous
Next: About this document ...

CMSC 250 Homework 11 Spring 2006
Due Wed April 26 at the beginning of your discussion section.
You must write the solutions to the problems single-sided on your own lined paper, with all sheets stapled together, and with all answers written in sequential order or you will lose points.
  1. For each of the following determine if it is a (a) total function, (b) a partial function (but not a total function) or (c) not a function at all. Then in one English sentence - explain why you answered that way.
    1. $A = \{1,2,3,4,5\}, f:A \rightarrow A, f= \{(1,1),(3,2),(5,3),(2,2),(4,1)\}$ Total function.
    2. $A = \{1,2,3,4,5\}, f:A \rightarrow A, f = \{(1,1),(2,3),(3,5),(2,2),(1,4)\}$ Not a function: The value $2$ in the domain maps to two values (2,3).
    3. $A = \{1,2,3,4,5\}, f:A \rightarrow A, f = \{(1,1),(2,2),(3,3),(1,1),(2,2)\}$ Partial function: The values $4$ and $5$ in the domain do not map to anything (and the fact that $(1,1)$ and $(2,2)$ each appear twice is irrelevant).
    4. $A = \{1,2,3,4,5\}, f:A \rightarrow A, f = \{(1,5),(2,3),(4,4)\}$ Partial function: The values $3$ and $5$ in the domain do not map to anything.
    5. $A= \{1,2,3,4,5\}, f:A \rightarrow A, f= \{(1,5),(2,5),(3,5),(4,5),(5,5)\}$ Total function: It is fine for every value in the domain to map to the same value in the co-domain.
  2. For each of the following, define a total function that maps from the domain indicated to the co-domain indicated. (Note: Z is the integers, Q is the rationals and R is the reals.)
    1. $f: Z \rightarrow Z$ $f(n) = n$.
    2. $g: Z \rightarrow Q$ $f(n) = n$.
    3. $h: Q \rightarrow R$ $f(x) = x$.
    4. $j: R \rightarrow Z$ $f(x) = 0$.
  3. For each of the following, tell if each is a total function, then if it is a total function, tell if you believe it to be one-to-one and if you believe it to be onto. Then a one sentene explanation of why you answered that way.
    1. $A = \{1,2,3,4,5\}, f:A\rightarrow A, f = \{(1,5),(2,1),(3,4),(4,2),(5,3)\}$ Total function, one-to-one, onto.
    2. $A = \{1,2,3,4,5\}, B = \{1,2\}, f:A\rightarrow B, f = \{(1,1),(2,1),(3,1),(4,1),(5,2)\}$ Total function, not one-to-one, onto. The values $1,2,3,4$ in the domain map to the same value $1$ in the co-domain (so it is not one-to-one).
    3. $A = \{1,2,3,4,5\}, B = \{1,2,3,4,5,6\}, f: A \rightarrow B, f=\{(1,6),(2,5),(3,2),(4,3),(5,1),(1,4)\}$ Not a function. The value $1$ in the domain maps to two values $4,6$ in the co-domain.



next up previous
Next: About this document ...
Chang Hu 2006-05-09

Web Accessibility