Question

Suppose Σ = {a,b,c,d} ,and regular expression are: 1. [a b] ? [c d] 2.~dad? show...

Suppose Σ = {a,b,c,d} ,and regular expression

are:

1. [a b] ? [c d]

2.~dad?

show in standard notation and Write set of all the strings for above expressions?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.

Regular Expression: (a+b+epsilon)(c+d)

Language in set: {c, d, ac, ad, bc, bd}

Explanation;

[ab]? means 0/1 letters from set of ab

[cd] one letter from set cd

2.

Regular expression: NONE

Language: {}

Because ~d should match literally but ~ is not in Σ

Otherwise if you think ~ is allowe

Regular Expression: ~da(epsilon+d)

Language in set: {~da, ~dad}

Please up vote.

Add a comment
Know the answer?
Add Answer to:
Suppose Σ = {a,b,c,d} ,and regular expression are: 1. [a b] ? [c d] 2.~dad? show...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT