


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



(a) โ n โ Integers , (n, n + 1, n^2 ) โ Integers^3. true (b) โ x โ Integers , (x, x + 1) โ { 1 , 2 , 3 }^2. false (c) If A = { 1 , 2 } and B = { 1 , 2 , 3 }, then โ x โ A such that โy โ B, x โฅ y. false (d) If A contains 5 elements, P (A) contains 32 elements, where P (A) denotes the power set of A. true (e) Let A, B be any sets. Let identity: A โ A be the identity function, that is, โx โ A, f (x) = x. Let g: A โ B be any function. Then g โฆ f = g. true (f) Let f : Reals โ [โ 1 , 1] be the function โx โ Reals , f (x) = sin(x). Then f is onto. true (g) Let cube: Reals โ Reals be the function โx โ Reals , cube(x) = x^3. Then cube is one-to-one and onto. true (h) Consider the signal spaces Signals 1 = [ Naturals 0 โ {true, f alse}], and Signals 2 = [ Naturals 0 โ {true, f alse, maybe}]. Then Signals 1 โ Signals 2. true (i) Given two state machines A and B, if A simulates B and A is deterministic, then B simulates A. true (j) Consider two state machines A and B with state spaces States A and States B. If in each state machine, all states are reachable, then in the cascade composition, all states in States A ร States B are reachable. false
a b^ c
{false}/true
{true}/false
{true}/true
{false}/false
{false}/false
{true}/false
Give each of the following:
(a) States = {a, b, c}.
(b) Inputs = {true, f alse, absent}.
(c) Outputs = {true, f alse, absent}.
(d) OutputSignals = [ Naturals 0 โ {true, f alse, absent}].
(e) Give the domain and range of the update function. Domain of update is States ร Inputs and its range is States ร Outputs. The sets States, Inputs, Outputs are as above.
(f) Fill in the table for update :
current ( next state, output symbol ) under specified input symbol state true false absent a (a, true) (b, true) (a, absent) b (a, f alse) (c, f alse) (b, absent) c (c, f alse) (b, f alse) (c, absent)
(a) Consider the deterministic machine A. It is similar to the machine CodeRecognizer studied in the text and in the homework.
start (^) 1 11
{1} {1}
{0}
{0}
{0}
{1}/ recognize
Let x denote an input signal and y the corresponding output signal. Complete the ex- pression for y(n) below, ignoring stuttering inputs, (i.e. replace the ยท ยท ยท by an expression involving x)
โx โ InputSignals , โn โ Naturals 0 ,
y(n) =
{ recognize , if (x(n โ 2), x(n โ 1), x(n)) = (1, 1 , 1) absent , otherwise
(b) Now consider the non-deterministic machine B.
start (^) maybe
{1}
{0, 1}
{0}
{1}/ recognize
Determine whether B simulates A and write down the relevant simulation relation, if any. No. B does not simulate A.