Question: p 2 CS 3 1 4 Spring 2 0 1 8 Final Exam Name _ _ _ _ _ _ _ _ _ _ _
p CS Spring Final Exam Name
I. Suppose unsigned real numbers in some language must have exactly one decimal
point, and the decimal point must be immediately preceded and followed by one or
more digits. Eg and are not legal unsigned real numbers, nor is but is
Write a regular expression for these unsigned real numbers. You may use the letter
d to stand for the digits through
II Consider the following Finite State Automaton FSA
A Is this a deterministic or a nondeterministic FSA? Why?
B Write a regular expression that specifies the same language that this FSA
accepts.
C For each of the following strings, if it is accepted by the FSA above circle Yes
and give a sequence of states that proves it is accepted. If not, circle No
i a Yes: states No
ii a b c Yes: states No
iii. a b a c Yes: states No
iv a b b c Yes: states No
v a b a b a b c Yes: states No
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
