0% found this document useful (0 votes)
8 views3 pages

Module 3 Assignment Solutions

Uploaded by

Use It
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

Module 3 Assignment Solutions

Uploaded by

Use It
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Discrete Mathematics - Module 3 Assignment Solutions

1. f(x) = { 3x - 5, x > 0; 1 - 3x, x <= 0 }

f(-10) = 1 - 3(-10) = 31

f(-1) = 1 - 3(-1) = 4

f(1) = 3(1) - 5 = -2

f(3) = 3(3) - 5 = 4

f(6) = 3(6) - 5 = 13

f(-6.5) = 1 - 3(-6.5) = 20.5

Range: { ..., 20.5, 4, -2, 13 }

2. Pigeonhole Principle: In any set of 29 people, at least 5 must share a birth day of the week.

Proof: 29 people / 7 days => ceiling(29/7) = 5 minimum

3. A = {1,2,3,4,6}, R = {(1,1), (2,1), (2,2), (3,1), (3,3), (4,1), (4,2), (4,4), (6,1), (6,2), (6,3), (6,6)}

Draw digraph with arrows for each pair.

4. f(a) = 2a + 1, g(b) = (b - 1)/2

g(f(a)) = g(2a + 1) = (2a + 1 - 1)/2 = a gf = identity f is invertible

f1(y) = (y - 1)/2

5. A function is invertible iff it is one-to-one and onto.

6. Hasse diagrams: use positive divisors and remove transitive edges for 45, 72, 36.

7. Function composition associative:

h(gf) = (hg)f for all x A


8. 10 points inside equilateral triangle with 9 sub-regions at least two points in same region distance < 1/3

9. If f, g are invertible gf is invertible, and (gf)1 = f1g1

10. (fg)1 = g1f1

11. A function is invertible iff it is both one-to-one and onto

12. Picking 41 integers from {1,...,25} by Pigeonhole Principle at least one pair sums to 26

13. A = {1,2,3,4,6}, R: same as #3

14. f = {(1,7),(2,7),(3,8),(4,6),(5,9),(6,9),(7,9),(8,8),(9,6),(10,9)}

f1(6) = {4, 9}, f1(8) = {3, 8}

15. If f: AB

- one-to-one |A| |B|

- onto |B| |A|

- bijection |A| = |B|

16. A = {1,2,3,4}, B = {2,3,4,5,6}

Min. elements of A sharing same image: ceil(4/5) = 1

17. A = {1,2,3}, B = {a,b,c,d}

Total functions: 43 = 64

One-to-one: 432 = 24
Onto: 0

18. A = {1,2,3,4,5}, B = {a,b,c}

Total: 35 = 243

One-to-one: not possible

Onto: compute using Inclusion-Exclusion (complex)

Common questions

Powered by AI

The Pigeonhole Principle states that if you distribute more items than containers, at least one container must contain more than one item. Here, 29 people are the items and 7 days of the week are the containers. Dividing 29 people by 7 days, ceiling(29/7) yields 5, ensuring that at least one birthday is shared by 5 people .

Function composition is associative because the order of applying the functions does not affect the outcome. This means that performing a composition of functions in different groupings, such as h(gf) and (hg)f, yields the same result for all x. This property allows flexible evaluation and manipulation of function compositions .

To verify the invertibility of the composition of two functions g and f, both must be invertible individually. The composition gf is also invertible, and the inverse of this composition is given by (gf)^-1 = f^-1 g^-1. This order of inversion is necessary to maintain the correct application order of function transformations .

By applying the Pigeonhole Principle, selecting 41 numbers from a set of 25 guarantees that at least one pair of numbers will sum to 26. This is because there are 12 pairs of numbers within the range 1 to 25 that sum to 26. With 41 numbers chosen, more sieges them into 12 pairs, ensuring at least one complete pair exists .

A bijection is a function that is both injective (one-to-one) and surjective (onto) between two finite sets. This implies a one-to-one correspondence between set elements, requiring the cardinalities |A| = |B|, meaning both sets must have equal numbers of elements .

For two finite sets A and B, with cardinalities |A| and |B|, the total number of functions is |B|^|A|. One-to-one functions are calculated by ensuring every element in A maps to a unique element in B. For |A| ≤ |B|, calculate based on |B|P|A| permutations. For example, from A = {1,2,3}, B = {a,b,c,d}, there are 4^3 = 64 total functions; one-to-one requires sequential assignment with decreasing options, yielding arrangements |B|P|A| = 24 .

The range of the piecewise-defined function is determined by evaluating the function at various points. For x > 0, f(x) = 3x - 5, examples include f(1) = -2, f(3) = 4, f(6) = 13; for x <= 0, f(x) = 1 - 3x, examples include f(-10) = 31, f(-1) = 4, f(-6.5) = 20.5. Collectively, the range is {..., 20.5, 4, -2, 13} .

To calculate the number of onto functions from set A to B, apply the Inclusion-Exclusion Principle, accounting for functions that miss covering all elements in B. For a function to be onto, every element in B must be mapped. Inclusion-Exclusion subtracts combinations where subsets of B remain unmapped, then adjusts for overlaps, providing an exact count of onto functions. This process becomes complex as set sizes increase .

A Hasse diagram represents a partial ordering of a set, illustrating elements' divisibility relations. For example, consider the positive divisors of a number such as 45 or 72. In constructing a Hasse diagram, transitive edges (implied connections) are removed. This means that direct lines are drawn only between elements where divisibility is immediate, depicting the minimal covering relations in this ordered set .

A function is invertible if it is both one-to-one (injective) and onto (surjective). A function is one-to-one if different inputs produce different outputs. It is onto if every possible output is covered. For a function f(a) = 2a + 1, its inverse exists since it can be expressed as a function f1(y) = (y - 1)/2, indicating it satisfies both conditions .

You might also like