Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

p 2 CS 3 1 4 Spring 2 0 1 8 Final Exam Name _ _ _ _ _ _ _ _ _ _ _

p2 CS 314 Spring 2018 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. E.g.,.7 and 5. are not legal unsigned real numbers, nor is 3 but 0.1 is.
Write a regular expression for these unsigned real numbers. You may use the letter
d to stand for the digits 0 through 9.
II. Consider the following Finite State Automaton (FSA)
A. Is this a deterministic or a non-deterministic 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions