[SOLVED] ceng223 -the2

35.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

Discrete Computational Structures

 

Question 1

Set theory is the backbone of modern mathematics. Based on it we can rigorously define many of the seemingly complex structure of mathematics. One such structure that will possibly come across in your later studies is that of topology. Below you are given the definition of a topology and asked to put your knowledge on set operations and countability in use.

Definition. A topology on a set A is a set T of subsets of A that has the following properties

  1. ∅ and A are in T .
  2. The union of the elements of any subset of T is in T . iii) The intersection of the elements of any finite subsets of T is in T .
  3. Let A be a set given as A = {a, b, c, d}. State for each of the below given set of subsets whether it is a topology or not, and briefly explain why.
    1. T1 = {∅, A} ii) T2 = {∅, {a}, {b}, {c}, {d}, A} iii) T3 = {∅, {a,b}, {b}, {b,c}, {a,b,c}, A} iv) T4 = {∅, {a,c}, {b}, {b,c}, {c}, {b,d}, A}
  4. Let A be a set. Show for each of the following sets whether they are a topology on A or not.
    1. the set of all U A such that A U is either finite or is A.
    2. the set of all U A such that A U is either countable or is all of A. iii) the set of all U A such that A U is infinite or ∅ or A.

Question 2

Let A = {0,1,2,…}. Consider the function

f : A × (0,1) → [0,∞)

where f(a,b) = a + b for all (a,b) ∈ A × (0,1).

  1. Is f injective? Prove your claim.
  2. Is f surjective? Prove your claim.
  3. If there exists an injective g from [0,∞) to A × (0,1) show that A × (0,1) and [0,∞) have the same cardinality. It is enough to name any theorems that you might use in this part.

Note: (0,1) = {x ∈ R|0 < x < 1} and [0,∞) = {x ∈ R|x ≥ 0}.

Question 3

Show whether the following sets are countable or not.

  1. The set A of all functions f : {0,1} → Z+.
  2. The set B of all functions f : {1,…,n} → Z+.
  3. The set C of all functions f : Z+ → Z+.
  4. The set D of all functions f : Z+ → {0,1}.
  5. The set E of all functions f : Z+ → {0,1} that are eventually zero.

(A function is said to be eventually zero if there is a N ∈ Z+ such that f(n) = 0 for all n N.)

Question 4

  1. Determine whether n! is Θ(nn) or not.

(Hint: Stirling’s approximation)

  1. Determine whether (n + a)b = Θ(nb) or not for a ∈ R and b ∈ Z+.

Question 5

Let x,y ∈ Z+.

  1. Show that (2x − 1) mod (2y − 1) = 2x mod y − 1.
  2. Show that gcd(2x − 1, 2y − 1) = 2gcd(x,y) − 1 using the above result.

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.