Question: CPSC 3 2 3 Homework One Below you will find a diagram of a deterministic finite automaton. As warm - up for problem two, please:
CPSC Homework One
Below you will find a diagram of a deterministic finite automaton. As warmup for
problem two, please:
a List the following:
i The set of states,
ii The set of characters the alphabet
iii. The transition function, :
iv The start state,
v The set of accept states, FsubeQ
b Describe the language that this DFA recognizes.
Recall the inclass exercise from Thursday, where you were asked to create a
deterministic finite automaton that recognized integers. Using that as a reference, design
a DFA that recognizes decimal numbers, often called floats in programming languages.
a Some things to keep in mind:
i A decimal number can start with a zero.
ii A decimal number can be positive or it can be negative or zero.
iii. A decimal number can be infinite in length, much like an integer.
iv Your machine should not allow for more than one decimal or negative
symbol to appear for a given. That is if your machine allows transitions
back to earlier states, it should not allow another decimal point or another
negative sign to appear in the number.
b To receive full credit for this problem, you must:
i Design a machine that correctly recognizes decimal numbers.
ii Utilize the formal definition of a DFA, specifying:
The set of states,
The set of characters the alphabet
The transition function, :
The start state,
The set of accept states, FsubeQ
iii. Provide a diagram of your DFA.
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
