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

  The merger between uwear and paledenim is complete and this

the merger between uwear and paledenim is complete and this project is nearing completion. prior to the end of the

  Write problems which have no solutions

What does the term solvable mean to you? What does it mean to say that "you solved a problem"? Determine examples of problems for which you believe there are no solutions.

  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?

  Satisfy the properties - reflexive and symmetric

For the relations below, explain why the relation does or does not satisfy each of the properties reflexive,symmetric, antisymmetric, and transitive.

  Explaining syntactically legal boolean expression

In this problem, we consider a very restricted subset of Boolean expressions. Define an operator to be one of  the four symbols: ¬, ∧, ∨, and →. Define a variable to be one of the five symbols

  Task 1 managing meetingswhat are symptoms of groupthink

task 1 managing meetingswhat are symptoms of groupthink and how can you assure groupthink will not become a problem in

  Company a which has been acquired by company b company a

company a which has been acquired by company b. company a was founded in 1956 in mobile alabama. the average age of its

  1let s1 and s2 be two strings of lengths m and n

1.let s1 and s2 be two strings of lengths m and n respectively. by de?nition a superstring of s1 and s2 is one which

  Create nondeterministic finite automata

Create NFA (Nondeterministic Finite Automata) - The language 0*{01}* with three states

  Ms give and fa for each of the following languagesa all

give and fa for each of the following languages ltbrgt ltbrgta. all binary strings with at least three 13939s ltbrgtb.

  Part-1farmers friend ff started as a mail-order company

part-1farmers friend ff started as a mail-order company providing a clothing and personal items supply service to

  Express set as regular expression

Express the following set as a regular expression: The set of all strings of length at least three over {0,1} such that every three consecutive.

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