Definition of the set spic of pictures

Assignment Help Theory of Computation
Reference no: EM13909169

Please state clearly the property you are trying to prove, the method you will use, and the base case(s) and the inductive hypothesis (hypotheses).

Question 1. Prove that

1≤kΣnk2 = n(n + 1)(2n + 1)/6

Question 2. Consider the following definitions for f, g : N → N:

f(0) = 0                         g(0) = 1

f(n + 1) = g(n) - 1          g(n + 1) = f (n) + 1

Compute f(1), g(1), f (2), g(2), f (3) and g(3).

Prove that ∀n ∈ N. f(n) = 0∧g(n) = 1.

Question 3. Consider an app that draws "suit" pictures. The simplest pictures one can draw are ♣ and ♠. One could also draw more complicated pictures by adding a 2263_heart.pngto an already existing picture, or by adding a 1455_diamond.pngto two already existing pictures. (The app will take care of placing the figures in the screen so you don't need to take care of this.)

(a) Give the inductive definition of the set SPic of pictures;

(b) Define the function black that counts the number of black figures (♣ or ♠) in the picture, and the function red that counts the number of red figures (2263_heart.png or 1455_diamond.png) in the picture;

(c) Prove by structural induction on the set of pictures that ∀p ∈ SPic. black(p) ≤ 1 + red(p).

Question 4. Let E be an alphabet. Prove that  ∀ x,y ∈ Σ*. |x| + |y| = |xy|.  Justify all steps in the proof.

Reference no: EM13909169

Questions Cloud

What must the expected return on the market be : A stock has an expected return of 8 percent, its beta is 0.85, and the risk-free rate is 3.6 percent. What must the expected return on the market be?
Discussions about the quality of the product : Section will provide a comprehensive look at the products, product lines, and services that are offered by your company. This will include discussions about the quality of the product/service and other additions such as warranties,installation, servi..
Describe any four rights of users of information systems : Describe any four rights of users of information systems. Explain the term virus and explain the differences between Trojan horses and worms. Support your answers with examples.
Find expected number of transition between visits to state i : Find the expected number of transitions between visits to any given state i. Argue that, starting from any state i, an eventual return to state ioccurs with probability 1.
Definition of the set spic of pictures : Consider an app that draws "suit" pictures. The simplest pictures one can draw are ♣ and ♠. Give the inductive definition of the set SPic of pictures
Sarbanes-oxley and corporate governance paper : If auditing of financial statements is required for the protection of public investors, should not all PCAOB members be taken from the investment community that uses audited financial statements? Why or why not?How does the decision in this case impa..
Energy vs reaction coordinate graph : Compare two reactions by drawing them on Energy vs. Reaction Coordinate graph. The reactions are identical, but one has been altered by the addition of a catalyst and/or enzyme. Label the ΔG and Ea for each reaction accordingly.
What are global is management challenges that face is leader : What are some of the global IS management challenges that face IS leaders today and Why is it important for an organization to have an information security policy?
Produce a plan using a gantt chart : Produce a plan, using a Gantt chart, indicating how you might schedule the work of developing the system. Your schedule should clearly be related to delivering the requirements of ABC Stores plc and should reflect RUP/USDP practice - Explain in wo..

Reviews

Write a Review

Theory of Computation Questions & Answers

  Why every nonempty propositional clause itself satisfiable

Describe why every nonempty propositional clause, by itself, is satisfiable. Prove rigorously that every set of five 3-SAT clause is satisfiable, given that each clause mentions exactly three distinct variables.

  1- when organization have a balance of both management and

1- when organization have a balance of both management and leadership and goals and challenges have been met how do we

  Formulate the corresponding coffee-machine decision problem

meeting rooms on university campuses may or may not contain coffee machines. we would like to ensure that every meeting

  Write down a 2 page research paper excluding the title page

write a 2 page research paper excluding the title page on the turing and von neumann models. compare and contrast each

  Computer arithmetic the following file contains only 7

the following file contains only 7 questions pertaining to arithmetic for computers. this should not be hard. i have

  Create a version management system in your machine for code

Create a version management system in your machine for the code of question 5. Present how you use it to manage your code files.

  Rice-s theorem for enumerable or non-re

We know by rice's theorem that none of the following problems are decidable. However,are they recursively enumerable,or non-RE? IS L(M) infinite?

  Write regular expressions

Write regular expressions to capture the following-Strings in C. These are delimited by double quotes ("), and may not contain newline characters. They may contain double-quote or backslash characters if and only if those characters are "escaped" b..

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

  Write algorithm for finding useless-productive nonterminals

Write down the algorithm for finding useless/productive nonterminals. Describe how this gives you the algorithm for whether language generated by grammar is empty.

  1-is situational leadership model a useful model and how

1-is situational leadership model a useful model and how can we apply this model effectively?2-how is the

  Part -1q1 what do you consider were the three most

part -1q1 what do you consider were the three most important things planned or unplanned that you learned last year?

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