home—lectures—exams—hws—D2L—zoom (snow day)
Sets and Logic
hw01
- Reading: Appendix A of the text.
- Always be clear about what kind of object your answer is
(e.g. a set, or an ordered pair) and use the right kind
of notation (eg {…} for sets and ‹…› for tuples).
- Exercises refer to the textbook pdf.
Due
2024-Sep-17 (Thu) 14:00 on D2L (a pdf, probably with photos/scans of hand-written work).
Bring hardcopy to the start of next in-person class (Sep-24).
- Recall that a cross-product of three sets is a set-of-3tuples.
- List the elements of A, as a set:
A = {1, 2} x {a, b} x {d, e}.
- List the elements of B, as a set:
B = {1, 2} x {a, b} x { }.
- Draw a diagram that shows the proper-subset relation among
the 8 elements of the power set of {1,2,3}.
In your diagram,
if
P ⊂ Q with nothing
in between
(i.e. no element R where P ⊂ R ⊂ Q),
then write Q somewhere above P and
draw a line from P to Q.
Note: This relation forms what is called a lattice.
- Let the set A be {RU, VT, JMU},
and let the set B be {red, orange, purple} (or, to save writing, {r,o,p}).
For each condition below,
give a relation in A × B
that satisfies it.
List the relations as sets of ordered pairs.
Each relation must have at least two elements.
For each function, indicate whether it is a total or partial function.
If no such relation exists, say so.
- A relation that is not a function.
- A function that is 1:1 and onto (if possible).
- A function that is 1:1 but not onto (if possible).
- A function that is onto but not 1:1 (if possible).
- For the following, say whether or not each statement is true:
- T / F : ∃ y ∈ ℕ (y < 20) ∨ (y>50).
- T / F : ∀ y ∈ ℕ (y < 20) ∨ (y>50).
- T / F : ∃ y ∈ ℕ (y < 20) ∨ (y>10).
- T / F : ∀ y ∈ ℕ (y < 20) ∨ (y>10).
- For the following, say whether or not each statement is true:
- T / F : ∃ y ∈ ℕ ∀ z ∈ ℕ (y +z = 20)
- T / F : ∀ y ∈ ℕ ∃ z ∈ ℕ (y +z = 20)
- Consider the set
C = {n ∈ ℕ : ∃ m ∈ ℕ (m≤10 ∧ 2n=m+3)}.
- Describe C in English.
Your answer will start C is the set of natural numbers n such that …
,
but your answer should not mention m
.
Do not do any algebra/solving (yet); just describe the condition w/o mentioning m.
- Explicitly list the elements of C.
(your answer will look something like C = {19, 43, 55}).
- If we change the “∧” to “∨”, then what is the set C?
- Express the proposition below in English.
∀ x ∈ ℕ (∀ y ∈ ℕ.(∃ z ∈ ℕ.(x = y + z)))
Note: Your answer should start:
"For all natural number x…"
or better
"Every natural number x…".
Is the statement true?
- Let the set D={1, 4, 7, 10, 13, …}, where the dots represent numbers that follow the obvious pattern.
Express this set in the form D = {n ∈ ℕ : P(n)}, where you replace
P(n) with some proposition of n.
I.e. a statement that is true or false depending on the particular value of n,
such as “∃ k (n+k = 19)”.
- Fill in the blanks (which may be a word-fragment, or an exponent):
- 1 million ~ 2
- 1012 = 1 ion ~ 2
- 10 = 1K ~ 1 Ki = 2
- Exercise 2.3.2, p.29pdf=14book.
- Let L1 = {apple, pear} and L2 = {pie, cake, ε} (over the alphabet Σ = [a-z]).
List the elements of L1L2 in lexicographic order.
This is just Exercise 2.3.2, p.29pdf=14book made a little less busy-ish.
- Give two (small) languages L1,L2 such that |L1L2| < |L1|⋅|L2|.
Extra credit if you have the smallest possible |L1L2|.
- Exercise 2.3.6, p.29pdf=14book .
Do not simply restate the math;
instead describe, in English, the strings in each language
so that an ITEC friend could understand.
None of your answers should include the word
prefix
.
For convenience: Your answers may take as understood that
the underlying alphabet is Σ = {a,b} —
you don't need to repeat that.
- Exercise 2.3.7, p.29pdf=14book
poor phrasing: (b)'s phrasing might be improved as
the language of odd-length strings (over {a,b}), under the operation Kleene-star
.
- Exercise 2.3.8, p.29pdf=14book, only parts c–e.
You can just assert whether the statement is true or false;
you do not need to provide a proof for
true
but you should
give a counterexample if false
.
Credit: This homework originally based on
Dr. Okie's homework
Some problems are based on Appendix A of the text.
home—lectures—exams—hws—D2L—zoom (snow day)
 This page licensed CC-BY 4.0 Ian Barland Page last generated | Please mail any suggestions (incl. typos, broken links) to ibarland radford.edu |
 |