Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Homework Help/Study Tips Expert

Assignment -

Question 1. Let (T, ∧, ∨,', 0, 1) be a Boolean Algebra.

Define ∗ : T × T → T and o : T × T → T as follows:

x ∗ y := (x ∨ y)' x o y := (x ∧ y)'

(a) Show, using the laws of Boolean Algebra, how to define x ∗ y using only x, y, o and parentheses.

(b) Show, using the laws of Boolean Algebra, how to define x o y using only x, y, ∗ and parentheses.

Define R ⊆ T × T as follows: (x, y) ∈ R if, and only if, (x ∧ y) ∨ (x' ∧ y') = 1

(c) Show, using the laws of Boolean Algebra, that R is an equivalence relation. Hint: You may want to use the observation that if A = B = 1 then A ∧ B ∧ C = A ∧ B implies C = 1 (why?)

Question 2. Let P F denote the set of well-formed propositional formulas made up of propositional variables, T, ⊥, and the connectives ¬, ∧, and ∨. Recall from Quiz 7 the definitions of dual and flip as functions from PF to PF:

  • dual(p) = p
  • flip(p) = ¬p
  • dual(T) = ⊥; dual(⊥) = T
  • flip(T) = T; flip(⊥) = ⊥
  • dual(¬φ) = ¬dual(φ)
  • flip(¬φ) = ¬flip(φ)
  • dual(φ ∧ ψ) = dual(φ) ∨ dual(ψ)
  • flip(φ ∧ ψ) = flip(φ) ∧ flip(ψ)
  • dual(φ ∨ ψ) = dual(φ) ∧ dual(ψ)
  • flip(φ ∨ ψ) = flip(φ) ∨ flip(ψ)

 (a) For the formula φ = p ∨ (q ∧ ¬r):

(i) What is dual(φ)?

(ii) What is flip(φ)?

(b) Prove that for all φ ∈ PF: flip(φ) is logically equivalent to ¬dual(φ).

Question 3. Let P(n) be the proposition that: for all k, with 1 ≤ k ≤ n,

1743_figure.png

(a) Prove that P(n) holds for all n ≥ 1. (Note: it is possible to do this without using induction)

We can compute 1858_figure2.pngfrom the formula given in lectures, however this can often require computing unnecessarily large numbers. For example,1543_figure3.png= 253338471349988640 which can be expressed as a 64-bit integer, but 100! is larger than a 512-bit integer. We can, however, make use of the equation above to compute 1858_figure2.pngmore efficiently. Here are two algorithms for doing this:

613_figure4.png

Let trec(n, k) be the running time for chooseRec(n, k), and let titer(n) be the running time for chooseIter(n, k). Let Trec(n) = max0≤k≤n trec(n, k) and Titer(n) = max0≤k≤n titer(n, k) (so Trec(n) ≥ trec(n, k) for all k, and likewise for Titer(n)).

(b) Give an asymptotic upper bound for Trec(n). Justify your answer.

(c) Give an asymptotic upper bound for Titer(n). Justify your answer.

Homework Help/Study Tips, Others

  • Category:- Homework Help/Study Tips
  • Reference No.:- M93128972
  • Price:- $25

Priced at Now at $25, Verified Solution

Have any Question? 


Related Questions in Homework Help/Study Tips

Question globally the human population is increasing

Question : Globally, the human population is increasing exponentially. What are some of the reasons for this population explosion? Do you think this is something that should be controlled? And if so, how might reproducti ...

In the incidents in the life of slave girlmary church

In The Incidents in The Life of Slave Girl,Mary Church Terrell concludes her speech stating, "And so, lifting as we climb, onward and upward we go, struggling and striving, and hoping that the buds and blossoms of our de ...

Question select an age group infant toddler child

Question: Select an age group (infant, toddler, child, adolescent, young adult, middle age adult or older adult). What physical changes is this group experiencing? What are some pathological risks? Are there social facto ...

Question why would developed nations try to coordinate

Question: Why would developed nations try to coordinate their macroeconomic policies? Provide at least 3 reasons and explain each of them in detail. The response must be typed, single spaced, must be in times new roman f ...

Question describe the meaning of an informed consent

Question: Describe the meaning of an informed consent. Include at least two barriers that may infringe on the rights of someone in a vulnerable status. The posting requires one reference from a peer-reviewed NURSING jour ...

This assignment requires to write on automation which must

This Assignment requires to write on automation which MUST cover all the following points - The benefits, drawbacks, risks and opportunities of automation in general. Assignment 2 Part 2 Analyzing and Designing To-Be Bus ...

Implementing assessmentconsider the following scenarioyou

Implementing Assessment Consider the following scenario: You are working as a developmental specialist in an early intervention program. As part of your responsibilities, you are required to develop early intervention pl ...

Question imagine that two focus groups have been conducted

Question: Imagine that two focus groups have been conducted in an Asian American and immigrant community in a large urban city. The rationale of conducting the qualitative study was because it has been noted that many As ...

Question marketing to organizations is significantly

Question: Marketing to organizations is significantly different from marketing to the consumer. This discussion will focus on issues such as derived demand. Topic 1: Why is the concept of derived demand so important for ...

Question hurd r w 2013 moving beyond the critical synthesis

Question: Hurd, R. W. (2013). Moving beyond the critical synthesis: Does the law preclude a future for US unions? Labor History, 54(2), 193-200. This article is a reflective essay that assesses the strength of comments m ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As