Discrete Mathematics (confused and help wanted)

Click For Summary
SUMMARY

The discussion centers on the calculation of functions from the two-element set {1,2} to the two-element set {a,b}, as presented in "Discrete Mathematics For Computer Science" by Kenneth Bogart. The conclusion is that there are 8 distinct functions, derived from the fact that each element in the domain has two choices in the codomain. The confusion arises from the comparison of finite functions in discrete mathematics to infinite functions in algebra and calculus, but all functions adhere to the same fundamental rules of mapping inputs to outputs.

PREREQUISITES
  • Understanding of basic set theory
  • Familiarity with functions and relations
  • Knowledge of finite versus infinite sets
  • Basic concepts of discrete mathematics
NEXT STEPS
  • Study the concept of functions in discrete mathematics
  • Explore set theory fundamentals, particularly Cartesian products
  • Learn about relations and their properties in mathematics
  • Review examples of finite functions and their applications
USEFUL FOR

Students of discrete mathematics, educators teaching mathematical functions, and anyone seeking clarity on the differences between finite and infinite functions.

sampahmel
Messages
20
Reaction score
0
Dear all,

I have an example taken from the book titled "Discrete Mathematics For Computer Science" by Kenneth Bogart. In the book, page 11, example 1.2-2, it says: Write down all the functions from the two element set {1,2} to the two element set {a,b}.

I couldn't understand the reasoning behind its explanation and I can't tell the difference between the functions in algebra and calculus.

According to the book, it says there are 8 functions for the example above. Why? And how is it different from a typical function? ( Functions in algebra and calculus has an infinite number sets of numbers as their domain) I do know about that and functions in discrete mathematics has a finite sets as their domain and range, I also understand this too and so ...How did the book came to the conclusion that there are 8 functions?

Thank you,

S
 
Physics news on Phys.org
A function is defined by the value of the function at each point in its domain. So the number of functions is just the number of choices for f(1) times the number of choices for f(2). I would say that there are only four functions:

f(1) = a, f(2) = a
f(1) = b, f(2) = b
f(1) = a, f(2) = b
f(1) = b, f(2) = a

I don't distinguish between functions in algebra, calculus, and discrete math; they're all just functions. True, some functions have the real numbers as their domain while others have the positive reals, the integers, the nonnegative integers, some other infinite set, or a finite set, but they all follow the same rules.
 
At the simplest you can define a relation as any set of ordered pairs of objects: a function is a relation in which no two distinct ordered pairs have the same first coordinate.
These are not the most general statements, but they apply to the current setting and serve to show one distinction between functions and other collections.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
7
Views
3K
  • · Replies 20 ·
Replies
20
Views
2K
Replies
8
Views
3K
Replies
7
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K