Question

Let L be the language over {a,b,c} accepting all strings so that: 1. No bs occur before the first c. 2. No as occur after t

Choose any constructive method you wish, and demonstrate that L is regular. You do not need an inductive proof, but you should explain how your construction accounts for each rule.

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

Regular Expression

a*c(c + bcc)*b

Explanation

1. Before first c, only a's come optionally - a*
2. So, a's come jsut before the first c
3. ___b is the string
4. bccc* is there in the regular experssion

If a language has a regular expression, then the language is regular.

a* is for the first and second points
There should be one c at least because there is b at the end

(c + bcc)* for fourth point

3 is for last b

please up vote

Add a comment
Know the answer?
Add Answer to:
Choose any constructive method you wish, and demonstrate that L is regular. You do not need...
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
  • 1. (15) Let L be the language over {a,b,c} accepting all strings so that: 1. No...

    1. (15) Let L be the language over {a,b,c} accepting all strings so that: 1. No b's occur before the first c. 2. No a's occur after the first c. 3. The last symbol of the string is b. 4. Each b that is not the last symbol is immediately followed by at least two c's. Choose any constructive method you wish, and demonstrate that is regular. You do not need an inductive proof, but you should explain how your...

  • Let L be the language over {a, b, c} accepting all strings so that:

    1. Let L be the language over {a, b, c} accepting all strings so that: 1. No b's occur before the first c. 2. No a's occur after the first c. 3. The last symbol of the string is b. 4. Each b that is not the last symbol is immediately followed by at least two d's. Choose any constructive method you wish, and demonstrate that L is regular. You do not need an inductive proof, but you should explain how your construction accounts for...

  • Construct a context-free grammar generating L. You do not need an inductive proof, but you should...

    Construct a context-free grammar generating L. You do not need an inductive proof, but you should explain how your construction accounts for each rule. Let L be the language over {a,b,c} accepting all strings so that: 1. No b's occur before the first c. 2. No a's occur after the first c. 3. The last symbol of the string is b. 4. Each b that is not the last symbol is immediately followed by at least two d's. 5. There...

  • (20) Let L be the language over {a,b,c} accepting all strings so that: 1. No b's...

    (20) Let L be the language over {a,b,c} accepting all strings so that: 1. No b's occur before the first c. 2. No a's occur after the first c. 3. The last symbol of the string is b. 4. Each b that is not the last symbol is immediately followed by at least two c's. 5. There are exactly as many a's as b's. Construct a context-free grammar generating L. You do not need an inductive proof, but you should...

  • Is the following argument valid? Provide a proof for your answer, using any method you wish...

    Is the following argument valid? Provide a proof for your answer, using any method you wish and explain. d~ b~ (Vb) =d

  • Answer the questions as indicated for scenarios 1-5. Note: You do not need to perform any...

    Answer the questions as indicated for scenarios 1-5. Note: You do not need to perform any of the procedures indicated. Scenario 4: A pharmaceutical manufacturer does a chemical analysis to check the potency of products. The standard release potency for cephalothin crystals is 910. An SRS of 16 lots gives the following potency data: 897 914 913 906 916 918 905 921 918 906 895 893 908 906 907 901 We wish to estimate the mean potency of products using...

  • (9 pts each) For problems 13-17 solve each problem by any method you choose. Be sure...

    (9 pts each) For problems 13-17 solve each problem by any method you choose. Be sure to support your method by including any equations, graphs, or sketches used to help solve the problems. Also be sure to show or explain all your work. Round your answers to the nearest hundredths when appropriate. Be sure to label your answers. 13. In order to measure the height of a certain tree, Ryan paces outward from the base of the tree 14.8 feet....

  • Using Python please Problem 3 (15 pts): Using the Secant Method, for A>0, (10 pts) Write a program which finds A/m for any positive value m. Note, you need to choose a function f(r) for the Secant...

    Using Python please Problem 3 (15 pts): Using the Secant Method, for A>0, (10 pts) Write a program which finds A/m for any positive value m. Note, you need to choose a function f(r) for the Secant Method whose root is A1 'm. (5 pts) How does your choice of m effect how many iterations your program takes to converge for a given tolerance choice? Plots will help me to understand your thinking here In [11]: #present your program for...

  • Need help with java programming. Here is what I need to do: Write a Java program...

    Need help with java programming. Here is what I need to do: Write a Java program that could help test programs that use text files. Your program will copy an input file to standard output, but whenever it sees a “$integer”, will replace that variable by a corresponding value in a 2ndfile, which will be called the “variable value file”. The requirements for the assignment: 1.     The input and variable value file are both text files that will be specified in...

  • Two words or phrases in English are anagrams if their letters (and only their letters), rearranged,...

    Two words or phrases in English are anagrams if their letters (and only their letters), rearranged, are the same. We assume that upper and lower case are indistinguishable, and punctuation and spaces don't count. Two phrases are anagrams if they contain exactly the same number of exactly the same letters, e.g., 3 A's, 0 B's, 2 C's, and so forth. Some examples and non-examples of regular anagrams: * The eyes / they see (yes) * moo / mo (no) *...

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
ADVERTISEMENT