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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!