Docsity

EECS 20 Midterm 1 Solution, Exams of Signals and Systems Theory

Toggle sidebar
bg1
EECS 20. Midterm No. 1
February 28, 2003.
Solution
1. 50 points. 5 points for each part. Please indicate whether the following statements are true
or false. There will be no partial credit. They are either true or false. So please be sure of
your answer.
(a) โˆ€nโˆˆIntegers,(n, n +1,n
2)โˆˆIntegers3.true
(b) โˆ€xโˆˆIntegers,(x, x +1)โˆˆ{1,2,3}2.false
(c) If A={1,2}and B={1,2,3}, then โˆƒxโˆˆAsuch that โˆ€yโˆˆB,xโ‰ฅy.false
(d) If Acontains 5elements, 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โ†’Abe the identity function, that is, โˆ€xโˆˆ
A, f (x)=x. Let g:Aโ†’Bbe any function. Then gโ—ฆf=g.true
(f) Let f:Reals โ†’[โˆ’1,1] be the function โˆ€xโˆˆReals,f(x)=sin(x). Then fis onto.
true
(g) Let cube:Reals โ†’Reals be the function โˆ€xโˆˆReals,cube(x)=x3. Then cube is
one-to-one and onto. true
(h) Consider the signal spaces Signals1=[Naturals0โ†’{tr ue, false}], and Signals2=
[Naturals0โ†’{true,false,maybe}]. Then Signals1โŠ‚Signals2.true
(i) Given two state machines Aand B,ifAsimulates Band Ais deterministic, then B
simulates A.true
(j) Consider two state machines Aand Bwith state spaces StatesAand StatesB. If in each
state machine, all states are reachable, then in the cascade composition, all states in
StatesAร—StatesBare reachable. false
1
pf3
pf4

Partial preview of the text

Download EECS 20 Midterm 1 Solution and more Exams Signals and Systems Theory in PDF only on Docsity!

EECS 20. Midterm No. 1

February 28, 2003.

Solution

  1. 50 points. 5 points for each part. Please indicate whether the following statements are true or false. There will be no partial credit. They are either true or false. So please be sure of your answer.

(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

  1. 35 points. 3 points for parts (a)-(g), 14 points for (h). Consider the state transition diagram shown below.

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)

  1. 15 points. 5 points for (a), 10 points for (b)

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