Give an asymptotic upper bound

Assignment Help Engineering Mathematics
Reference no: EM132136341

Assignment -

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?)

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(φ).

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.

Reference no: EM132136341

Questions Cloud

Transportation industry at industry-organizational level : What has been the financial impact of the transportation industry at an industry and organizational level?
Systems development lifecycle : Evaluate the processes that are involved in a systems development lifecycle (SDLC) and how the processes relate to each other.
Conduct a competitor analysis : Determine the two or three areas in which your client has a competitive advantage relative to competitors. Explain how the advantage(s) represent
Knowledge system requires research : Identify stakeholder training requirements and needs from a knowledge system requires research.
Give an asymptotic upper bound : COMP 9020 - Assignment - Let trec(n, k) be the running time for chooseRec(n, k), Give an asymptotic upper bound for Trec(n). Justify your answer
Describe how would you decide if the best option : Need help answering this, The decision to globalize operations is very complex and not without risks. Chose a company that has not yet globalized and answer the
Why does out of date stock need to be disposed of : Why does out of date stock need to be disposed of? What records need to be kept when disposing of out of date stock? Where should these records be stored?
What are the national quality control techniques : What are the national quality control techniques? What are national quality control procedures?
Determine the number of performance obligations : Determine the number of performance obligations that exist in the following scenarios. Tablet Tailors sells tablet PCs combined with Internet service.

Reviews

len2136341

10/9/2018 10:33:25 PM

Note: In your assignment, how you arrived at your solution is as important (if not more so) than the solution itself and will be assessed accordingly. There may be more than one way to find a solution, and your approach should contain enough detail to justify its correctness. Lecture content can be assumed to be common knowledge.

len2136341

10/9/2018 10:33:20 PM

Advice on how to do the assignment - All submitted work must be done individually without consulting someone else’s solutions in accordance with the University’s “Academic Dishonesty and Plagiarism” policies. Assignments are to be submitted via WebCMS (or give) as a single pdf (max size 2Mb). In Linux, the following command pdfjoin --outfile output.pdf input1.pdf input2.pdf ... can be used to combine multiple pdf files. The command convert -density 150x150 -compress jpeg input.pdf output.pdf can be used to reduce the filesize of a pdf (change 150 to reduce/improve quality/filesize). Please ensure your files are legible before submitting.

len2136341

10/9/2018 10:33:15 PM

Be careful with giving multiple or alternative answers. If you give multiple answers, then we will give you marks only for ”your worst answer”, as this indicates how well you understood the question. Some of the questions are very easy (with the help of the lecture notes or book). You can use the material presented in the lecture or book (without proving it). You do not need to write more than necessary (see comment above). When giving answers to questions, we always would like you to prove/explain/motivate your answers. If you use further resources (books, scientific papers, the internet,...) to formulate your answers, then add references to your sources.

Write a Review

Engineering Mathematics Questions & Answers

  Calculate the lagrange multiplier ?

Assume that the firm increases its expenditure on variable inputs by $63 (1 %) to $6,363. Show that the level of output increases by λ ∗ 63.

  Comment briefly on the meaning of each of the given

A store manager selling TV sets observes the following sales on 10 different days. Calculate the regression of y on x.

  Compute the variance for the profit

The J. R. Ryland Computer Company is considering a plant expansion to enable the company to begin production of a new computer product.

  What is the probability that a respondent to poll owned home

The Wall Street Journa/Marris Personal Finance poll asked 2082 adults if they owned a home (All Business website. January 23. 2008).

  Find the optimal number of ads of runs

Josh Steele manages a professional choir in a major city. His marketing plan is focused on generating additional local demand for concerts and increasing ticket revenue and also gaining attention at the national level to build awareness of the ens..

  Find the production for a week of machines

Production suppose that the number of units of a good produced, z, is given by z = 20xy, where x is the number of machines working properly.

  Sketch a graph of function in the given interval

Sketch a graph of f (x) in the interval -2Π

  Formulate the problem as a linear-programming problem

During each quarter, the company loses 15% of its personnel (including secretaries trained in the previous quarter). Formulate the problem as a linear-programming problem.

  Using unique prime factorisation find gcd

Determine whether each of the statements is true or false. If true, give a proof. If false, give a counterexample - What possible remainders do perfect cubes leave when divided by 7?

  Draw a schematic diagram for the given questions

Taking measurements of the slope of a curve at three points farther and farther to the right along the horizontal axis, the slope of the curve changes.

  Compute ordering cost carrying cost and total cost functions

For inventory problems, the cost is a function of the order size. A company has collected the following data for one of its product.

  Calculation based on the probability issues

What is the probability that the first selected candy is lemon or that the second selected candy is cherry?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd