Question: Construct a regular expression that recognizes the following language of strings over the alphabet {0,1,,,.,-} : Give a regular expression for binary numbers. They can

 Construct a regular expression that recognizes the following language of strings

Construct a regular expression that recognizes the following language of strings over the alphabet {0,1,,,.,-} : Give a regular expression for binary numbers. They can be integers or binary fractions. A leading - sign is always allowed. Leading O's are not allowed except when the integer part is 0. When the binary points is present, then neither the integer part nor the fractional part are allowed to be empty. If the integer part has more than 3 bits, then grouping with commas is required. Examples: Allowed: -0 1,111,010 -1,111.00 Not allowed: 11 1000 The 4-letter alphabet consists of 0, 1, dot, and comma. HELP: Regular Expression Syntax Terminals: o Any character from the alphabet is a terminal o Epsilon () is expressed as: \e, \eps or \epsilon o The empty set is expressed as: \emp or \emptyset . Operations (R is a regular expression); o Union is expressed as R|R o Star as R* o Concatenation as RR o Plus as R+ Construct a regular expression that recognizes the following language of strings over the alphabet {0,1,,,.,-} : Give a regular expression for binary numbers. They can be integers or binary fractions. A leading - sign is always allowed. Leading O's are not allowed except when the integer part is 0. When the binary points is present, then neither the integer part nor the fractional part are allowed to be empty. If the integer part has more than 3 bits, then grouping with commas is required. Examples: Allowed: -0 1,111,010 -1,111.00 Not allowed: 11 1000 The 4-letter alphabet consists of 0, 1, dot, and comma. HELP: Regular Expression Syntax Terminals: o Any character from the alphabet is a terminal o Epsilon () is expressed as: \e, \eps or \epsilon o The empty set is expressed as: \emp or \emptyset . Operations (R is a regular expression); o Union is expressed as R|R o Star as R* o Concatenation as RR o Plus as R+

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!