Question: Problem _ Regular expressions and finite state ma- chines 5 You are designing a new language with fixed-point numbers Every fixed-poinmber should have a unique

Problem _ Regular expressions and finite state ma- chines 5 You are designing a new language with fixed-point numbers Every fixed-poinmber should have a unique representation. This means, no leading or trailing O's are allowed, and every number must have a "point". Examples: Allowed: 0.0, 10.0, 45000.007, 0.888 Not allowed: 0, 10, 10., 10.00, 045000.007, .888 1. Write a regular expression for fixed-point numbers for your language. 2. Give a DFA in the form of a state transition graph that recognizes your language. Note: No need to introduce error states; your DFA can reject the input if it gets "stuck Keep your DFA as small as possible
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
