Panphobia
- 435
- 13
Homework Statement
How many functions are there from {0,1} to {0,1}?
The Attempt at a Solution
I know the answer is 9, but how is the answer 9?
The discussion revolves around the number of functions from the set {0,1} to itself, specifically addressing the implications of function definitions and domain restrictions.
The conversation reflects differing interpretations of function definitions and domain specifications, with some participants questioning the validity of including undefined values in the count of functions. There is no clear consensus, as multiple interpretations are being actively discussed.
Some participants reference specific exam questions that suggest a different answer, indicating potential discrepancies in understanding or definitions used in academic settings.
Panphobia said:Homework Statement
How many functions are there from {0,1} to {0,1}?
The Attempt at a Solution
I know the answer is 9, but how is the answer 9?
Panphobia said:ohhhh I thought it was 2^2 possibilities not 3^2, thanks, because {} [itex]\subset[/itex] {0,1} and the value of {} is undefined correct?
Dick said:f(0) could be either 0, 1 or undefined. Same for f(1). Count all of the possibilities.
Panphobia said:ohhhh I thought it was 2^2 possibilities not 3^2, thanks, because {} [itex]\subset[/itex] {0,1} and the value of {} is undefined correct?
Dick said:No, it's because they only said f:{0,1}->{0,1}. They didn't say the function was defined for all values in the set {0,1}. If they had said the DOMAIN of f was {0,1}, then the answer 4 would be correct. It's more legalese than important.
Panphobia said:On my practise mid term exam, it gives this exact question, the answer was 9, so pasmith, it can't be 4.