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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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