1. (0|1)*((000000)|(000001)|(000010)|(000011)|(000100)|(000101)|(000110)|(000111)|(001000)|(001001)|(001010)|(001011)|(001100)|(001101)|(001110)|(001111)|(010000)|(010001)|(010010)|(010011)|(010100)|(010101)|(010110)|(010111)|(011000)|(011001)|(011010)|(011011)|(011100)|(011101)|(011110)|(011111)|(100000)|(100001)|(100010)|(100011)|(100100)|(100101)|(100110)|(100111)|(101000)|(101001)|(101010)|(101011)|(101100)|(101101)|(101110)|(101111)|(110000)|(110001)|(110010)|(110011)|(110100)|(110101)|(110110)|(110111)|(111000)|(111001)|(111010)|(111011)|(111100)|(111101)|(111110)|(111111))* 2. (0|1)*1(0|1)*1(0|1)*1(0|1)*0(0|1)*0(0|1)* 3. (0|1)*(0(0|1)*|1(0|1)*|00(0|1)*|01(0|1)*|10(0|1)*|11(0|1)*|000(0|1)*|001(0|1)*|010(0|1)*|011(0|1)*|100(0|1)*|101(0|1)*|110(0|1)*|111(0|1)*|0000(0|1)*|0001(0|1)*|0010(0|1)*|0011(0|1)*|0100(0|1)*|0101(0|1)*|0110(0|1)*|0111(0|1)*|1000(0|1)*|1001(0|1)*|1010(0|1)*|1011(0|1)*|1100(0|1)*|1101(0|1)*|1110(0|1)*|1111(0|1)*)* 4. (0|1)*(00(0|1)*|01(0|1)*|10(0|1)*|11(0|1)*)*(0(0|1)*|1(0|1)*)*
Added by Courtney Q.
Step 1
Step 1: The regular expression (0|1)* matches any string of 0s and 1s, including an empty string. Show more…
Show all steps
Your feedback will help us improve your experience
Sri K and 50 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Find regular expressions for the following languages on {a, b}. L={w: |w| mod 3 ≠0}. b) L={w: |w| mod 3 = 0} L={w: |w| mod 5 > 0}. L={w: |w| mod 3 = 0}.
Sri K.
Give a regular expression that describes the following language over the alphabet ÎŁ = {0,1}. L= {w | w does not contain the substring 110} First design a DFA that accepts L. Then use the structure of the DFA to help you write a regular expression for L.
Madhur L.
Construct regular expression for the following languages : 1) L(M) = all binary words contain substring start with 101 and have substring 100; 2) L(M) = all words over alphabet {0,1,2} with odd number of 2's;
Breanna O.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD