Question
Computer Science: Regular languages, Regular expressions, and Finite Automata I do not understand how to do any of these problems. My professor has given us
Computer Science: Regular languages, Regular expressions, and Finite Automata
I do not understand how to do any of these problems. My professor has given us the answers. Please provide an extremely detailed dumbed down explanation so I can understand how to do these type of problems. If there are other solutions, please explain. Thanks
1a) L is the language of odd length strings of zeroes. Give a regex for L.
Answer: 0(00)*
1b) L is the language of all strings over alphabet {0,1} where every 1 has an adjacent 1.
Answer: (0 | 111*)* or (0|11+)*
1c) L is the language of odd decimal integers greater than 0. Give a regex for L.
Answer: [1-9][0-9]* (1|3|5|7|9)|1|3|5|7|9
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started