Give a recursive definition for the language

Assignment Help Basic Computer Science
Reference no: EM13772239

1) Give a recursive definition for the following language over the alphabet {a, b} The language AA of all words containing the substring aa

2) Consider the following recursive definition of 4-PERMUTATION:

Rule 1: 1234 is a 4-PERMUTATION.

Rule 2: If xyzw is a 4-PERMUTATION, then so are wzyx and yzwx.

Rule 3: no other words in 4-PERMUTATION.

Write all the words in the language 4-PERMUTATION.

3) Construct a regular expression defining each of the following languages over the alphabet {a, b}.

(a) L = {aab, bba, bbb};

(b) The language of all strings containing exactly two a's.

(c) The language of all strings containing at least two a's.

(d) The language of all strings that do not end with ab.

(e) The language of all strings that do not containing the substring aa.

(f) The language of all strings in which every a is followed immediately by bb.

4) For the alphabet S={a, b}, construct an FA that accepts the following languages (be sure it is an Finite Automata (FA) that you provide and not a Transition Graph (TG)).

(a) L = {all strings with exactly one a}.

(b) L = {all strings with at least one a}.

(c) L = {all strings with no more than three a's}.

(d) L= {all strings with at least one a and exactly two b's}

(e) L= {all strings with b as the second letter}

(f) L={w, |w| mod 3 =0}

Reference no: EM13772239

Questions Cloud

Describe the key elements of an information system for mco : Describe the key elements of an information system for an MCO. What elements are different than for a physician office or group
Addresses the roles of women in religion : Write a 350-word paper that addresses the roles of women in religion, both historically and today. What has changed about the roles of women various religions over time? What do you think is the future of women in religion?
Health maintenance organization (hmo) : Explain who bears the financial risk-the provider, the patient, or the managed care organization.
Create visual logic files to execute each of the tasks : Create a Word document for each of the tasks. The document should contain: a brief description of the task the pseudocode associated with the task Create Visual Logic files to execute each of the tasks.
Give a recursive definition for the language : Give a recursive definition for the following language over the alphabet {a, b} The language AA of all words containing the substring aa
Toxicity risks of water-soluble vitamins : What are the functions, benefits, deficiency risks, and toxicity risks of water-soluble vitamins?
Write a review of the revision checklist : Write a review of the "Revision Checklist," which will guide you through the process of reflecting on and revising your personal essay.
Safe and healthful workplaces in america : Describe the costs of compliance as compared with the costs of Workers Compensation and the hidden costs of hazards.
Explain the fixed cost and the the hidden cost fallacy : In 2011, Britney taught music and earned $20,000. She also earned $4,000 by renting out her basement. On January 1, 2012, she quit teaching, stopped renting out her basement, and began to use it as the office for her new website design business. Duri..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How many time is the loop body of the while statement

Assume that all variables are of type int. z = 0; g = 0; s = 0; i = 0; while (i = 0) g = g + 1; else z = z + 1; i = i + 1; } 1.How many time is the loop body of the while statement executed?

  Describe areas where you disagreement between sources

IT engagement model and management. Include any information you believe adds to the material in the text. Describe any areas where you see disagreement between the sources.

  Does the use of search engines threaten the privacy

Does the use of search engines threaten the privacy of ordinary people - Please keep it simple and short and no copy and paste.

  Describe basic computer components and their uses

Explores computer literacy topics in a very basic, hands-on environment. Presents the fundamentals of computer hardware and software, the Internet, operating systems, and current application software within Microsoft Office Suite. Describe basic c..

  Compare and contrast distance-vector and link state routing

Compare and contrast distance-vector and link state routing

  Introduction to wireless communications

After reviewing the concepts, pictorially model the TCP/IP protocol against the 7-layer OSI model. In your depiction, include the common protocol sections that fit in the various levels.

  Backup utility programs

Of the five general categories of data analysis tools, which of the following is most commonly used by local agencies because it allows the investigator to quickly identify questionable graphics files?

  Er diagram, normalization, relational structure only

The proprietors of BigM have approached you and asked if you could design a database to help them manage their business. The management has commissioned you (in your capacity as a Database Management System consultant) to analyse, design and devel..

  Make a c program using cramers rule using 3 variables and eq

make a C program using cramers rule using 3 variables and 3 equations. I need help why the third variable says it isnt initialized and allow the the determinents to be calculated. also i need help making a menu allowing the user to make a start the p..

  How verbal and nonverbal communication affect communication

Write 1,750- to 2,100-word paper explaining how verbal and nonverbal communication can affect communication in given areas: Police situations (public announcement to the press).

  Research the major middleware providers

The language to use if need is Java. Make sure you cite references and adhere to the academic guidelines for writing a research paper.

  Explain specific challenges facing the designer

Discuss the specific challenges of facing the designer, specifically with regard to the limitations of hardware, software and interface design two paragraph each.

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