Regular expression for the languages

Assignment Help Basic Computer Science
Reference no: EM131602361

For each of the languages L1, L2, L3, L4 described below:

(1)  How do I write a regular expression for the languages below.

(2)  Define a finite state machine (FSM) that recognizes words in the language (input alphabet, states, start state, state transition table, and accept states). Include a state digraph for the FSM.

L1: For alphabet {a,b}, all strings that contain an odd number of a's and exactly one b.

L2: For alphabet {0,1}, all strings of length 3 or less that have more 0's than 1's.

L3: For alphabet {x,y,z}, all strings that contain xyx or zyz.

L4: For alphabet {p,q,r}, all strings that contain the substring rqr or end with pp.

Reference no: EM131602361

Questions Cloud

What can nurses do to support their international colleagues : What can nurses do to support their international colleagues and advocate for the poor and underserved of the world?
Define the major cybercrime issue : provide a minimum of one paragraph discussion on why this issue is important for the U.S. to address
Describe the constraints on digital forensic investigations : Describe the constraints on digital forensic investigations. Use technology and information resources to research issues in computer forensics.
What does the given statement tell us about the reaction : The time for a chemical reaction, T (in minutes), is a function of the amount of catalyst present, a (in milliliters), so T = f(a).
Regular expression for the languages : (1) How do I write a regular expression for the languages below.
Problem related to the temperature : The temperature, T, in degrees Fahrenheit, of a cold yam placed in a hot oven is given by T = f(t), where t is the time in minutes since the yam was put.
What is the purpose of using the tool : What is the purpose of using the tool? What is the expected outcome from utilizing this stress management tool?
Define intra-individual theories : Compare and contrast the theories associated with each of these categories and identify whether or not the theoretical foundations
Analyzing wireshark files : Leverage the network security skills of using port scans, network scanning tools, and analyzing Wireshark files, to assess any suspicious network activity

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Develop a class implementation for the source-sink

Develop a class implementation for the source-sink shortest-paths problem in Euclidean graphs that is based on the bidirectional search described in Exercise 21.35.

  How to transform a 1:n relationship into an n:m relationship

Assume that tables T1 and T2 have a 1:1 relationship. Assume that T2 has the foreign key. Show the SQL statements necessary to move the foreign key to T1. Make up your own names for the primary and foreign keys.

  Summarize the data numerically and graphically

Test that there is no association between gender and the likelihood of trying a low-fat diet. Summarize the results.

  Is this modeling choice realistic for dlas

Propose and defend another way of modeling the changing probability.

  What kind of test should she have performed

What else about the data would you like to see in order to check the assumptions and conditions?e) What might she want to test next?

  Distinguish between traditional and operational bi

Distinguish between traditional and operational BI.

  What are entity-relationship diagrams

What are entity-relationship diagrams and how are they used? What symbol is used for a relationship? What is an associative entity? Provide an example.

  Risk analysis on a school information assets

Let's do some risk analysis on a school's information assets. The school stores many types of about students and three of these are:

  Calculates and returns the median score of the class

a) Display each student name and his/her exam score in a list box. b) Write a function that calculates and returns the average score of the class. c) Write a function that calculates and returns the range of scores. d) Write a function that calculate..

  Which are the busiest times of the day

Follow that with a call to its print Hourly Counts method, which will print the results of the analysis. Which are the busiest times of the day?

  Scenario and do the following bullets in a word doc

Brewton Enterprises, Inc. is a clothing retail company located in the city of Eugene, Oregon. The company offers an array of products with a mix of clothing.

  Compute the tuition fee for another student

The above process will continue as long as they want to compute the tuition fee for another student. However, if Dr Ho does not want to compute the tuition fee for another student (i.e. he enters anything other than "Y" or "y") then the program wi..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd