TOOLS AND TECHNIQUES FOR COMPILER DESIGN
MISCELLENOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which among the following looks similar to the given expression?((0+1). (0+1)) *
|
{x {0, 1} *|x is all binary number with even length}
|
|
{x {0, 1} |x is all binary number with even length}
|
|
{x {0, 1} *|x is all binary number with odd length}
|
|
{x {0, 1} |x is all binary number with odd length}
|
Explanation:
Detailed explanation-1: -Write the regular expression for the language containing the string in which every 0 is immediately followed by 11. Solution: The regular expectation will be: R = (011 + 1)*
Detailed explanation-2: -A regular expression (RE) describes a language. It uses the three regular operations. These are called union/or, concatenation and star.
There is 1 question to complete.