regular expressions into nondeterministic finite automata


Question 1

Write regular expressions which describe the following languages. Remember your answers must only use symbols from definition 3.5, i.e., letters from the alphabet (which is {0,1}{0,1} in each case), (( ,)), εε, ∅∅, ∪∪, and ∗∗.

Try to write the regular expressions from scratch rather than converting equivalent NFAs. If you decide to do the latter, make sure your result is as simple as possible.

  1. {w∈{0,1}∗|w ends with 101}{w∈{0,1}∗|w ends with 101}
  2. {w∈{0,1}∗|w starts with 10 and ends with 1}{w∈{0,1}∗|w starts with 10 and ends with 1}
  3. {w∈{0,1}∗|w contains the substring 01}{w∈{0,1}∗|w contains the substring 01}
  4. {w∈{0,1}∗|w does not contain the substring 01}{w∈{0,1}∗|w does not contain the substring 01}
  5. {w∈{0,1}∗|w contains exactly one occurrence of 01}{w∈{0,1}∗|w contains exactly one occurrence of 01}
  6. {w∈{0,1}∗|w has a 1 in the third position}{w∈{0,1}∗|w has a 1 in the third position}
  7. {w∈{0,1}∗|w has even length}{w∈{0,1}∗|w has even length}
  8. {w∈{0,1}∗|w has an odd number of 0}{w∈{0,1}∗|w has an odd number of 0}
  9. {w∈{0,1}∗|w has an odd number of 0’s or an even number of 1’s}{w∈{0,1}∗|w has an odd number of 0’s or an even number of 1’s}

Question 2

Convert the following regular expressions into nondeterministic finite automata using the method shown in the videos. Represent the automata in the form of diagrams. You should simplify your models as you build them – for example you may remove redundant states and combine states that are linked with epsilon transitions, but make sure the language is unchanged.

  1. (aba∪bb∪ba)∗(aba∪bb∪ba)∗
  2. ab(a∪b)∗a(a∪b)∗ab(a∪b)∗a(a∪b)∗
  3. a(bb)∗∪aba(bb)∗∪ab
  4. b∗a∗(ba∪b∗)b∗a∗(ba∪b∗)

Question 3

Convert these nondeterministic finite automata (repeated from Problem Sheet 1) into regular expressions using the method shown in the lessons. Show your working.

Note: the order in which you remove states in the conversion process will greatly affect the complexity of the resulting regular expression. Try to choose this order in a way that creates the simplest result. You might want to try multiple options before deciding which one to use for your submission.

Calculate the price of your order

Simple Order Process

Fill in the Order Form

Share all the assignment information. Including the instructions, provided reading materials, grading rubric, number of pages, the required formatting, deadline, and your academic level. Provide any information and announcements shared by the professor. Choose your preferred writer if you have one.

Get Your Order Assigned

Once we receive your order form, we will select the best writer from our pool of experts to fit your assignment.

Share More Data if Needed

You will receive a confirmation email when a writer has been assigned your task. The writer may contact you if they need any additional information or clarifications regarding your task

Let Our Essay Writer Do Their Job

Once you entrust us with your academic task, our skilled writers embark on creating your paper entirely from the ground up. Through rigorous research and unwavering commitment to your guidelines, our experts meticulously craft every aspect of your paper. Our process ensures that your essay is not only original but also aligned with your specific requirements, making certain that the final piece surpasses your expectations.

Quality Checks and Proofreading

Upon the completion of your paper, it undergoes a meticulous review by our dedicated Quality and Proofreading department. This crucial step ensures not only the originality of the content but also its alignment with the highest academic standards. Our seasoned experts conduct thorough checks, meticulously examining every facet of your paper, including grammar, structure, coherence, and proper citation. This comprehensive review process guarantees that the final product you receive not only meets our stringent quality benchmarks but also reflects your dedication to academic excellence.

Review and Download the Final Draft

If you find that any part of the paper does not meet the initial instructions, send it back to us with your feedback, and we will make the necessary adjustments.