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

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  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.

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