Question: Question 1 : Write the regular expression for fractional numbers in the scientific notation. In the scientific notation for fractional numbers: You can have only
Question : Write the regular expression for fractional numbers in the scientific notation. In the scientific
notation for fractional numbers:
You can have only one or two digits before the decimal point and an optional minus sign before it
You must have one or more digits after the decimal point
Then you will have the caret character to indicate the starting of the exponent that is power of
of the fraction.
The exponent that follows is an integer, that is a sequence of one or more digits led by an optional
minus sign.
For example: and are both valid fractional numbers in the scientific notation.
Question : convert the regular expression into an NFA then convert that NFA into a 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
