/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q5E Question: Each of the following ... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Question: Each of the following languages is the complement of a simpler language. In each part, construct a DFA for the simpler language, and then use it to give the state diagram of a DFA for the language given. In all parts, Σ=a,b.

a.w|wdoesnotcontainthesubstringabAb.{w|wdoesnotcontainthesubstringbaba}c.{w|wcontainsneitherthesubstringsabnorba}d.{w|wisanystringnotina*b*}e.{w|wisanystringnotin(ab+)*}f.{w|wisanystringnotina*∪b*}g.{w|wisanystringthatdoesntcontainexactlytwoas}h.{w|wisanystringexceptaandb}

Short Answer

Expert verified

(a)The complementary of a simplified language L¯={w|w L is indeed the language L¯ is indeed the language  L¯ does not include substring ab

(b) L = w it does not contains / allow sub-string as ab .

(c) L = w contains / accepting sub-string

(d)Go together of L=w does not contains sub-string.

(e)L=w contains neither .

(f)L=wina*b*.(g)L=wnotina*b*.(h)L=winab+*.(i)L=wnotinab+*.(j)L=wina*+b*.(k)L=wnotina*+b*.(l)L=winab+*.(m)L=whasexactly2a's(n)L=wdoesnothaveexactly2a's

Step by step solution

01

Simple language

In the above question we can see there is total different part of question. Let’s see step by step in short here in step-1. A. Part show that it doesn’t contain any substring. B. Part show that it’s not contain substring like baba which is different than part A.

Part C is not containing any substrings which is either ab or ba . Same way other part is display multiplication and addition related string. And checking weather this string contains or not.

02

prefix, infix and post fix operation of alphabet

a. L = w contains / accepts sub-string ab . The complementary of a simplified language L¯={w|w L is indeed the language L¯ does not include substring ab . Then it's only a matter of saying "contain the string ab ." The language L is recognised by DFA as follows:


b. go together L = w it does not contains / allow sub-string as

c. L = w contains / accepting sub-string from given drawing like: baba

d. go together of L = w does not contains sub-string

e. L = w contains neither ba nor ab


f.L=wina*b*

gL=wnotina*b*

h.L=winab+*

i.L=wnotinab+*

jL=wina*+b*

mrole="math" localid="1663238225966" L=whasexactly2a's

nL=wdoesn'thave2a's

L=wisanystringexcept'a'and'b'

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Question: Answer all parts for the following DFA and give reasons for your answers.

a.Is<M,0100>∈ADFA?b. Is<M,011>∈ADFA?c. Is<M>∈ADFA?d. Is<M,0100>∈AREX?e. Is<M>∈EDFA?f. Is<M,M>∈EQDFA?

Let. ∑={0,1}LetC1 be the language of all strings that contain a 1 in their middle third.

Let C2be the language of all strings that contain two 1s in their middle third. So C1={xyz|x,z∈∑*andy∈∑*1∑*,where|x|=|z|≥|y|}and C2={xyz|x,z∈∑*and y∈∑*1∑*1∑*, â¶ÄŠwhere |x|=|z|≥|y|}.

a.Show that C1is a CFL.

b. Show thatC2 is not a CFL

Use the procedure described in Lemma 1.60to convert the following finite automata to regular expressions.

This problem is inspired by the single-player game Minesweeper, generalized to an arbitrary graph. Let Gbe an undirected graph, where each node either contains a single, hidden mine or is empty. The player chooses nodes, one by one. If the player chooses a node containing a mine, the player loses. If the player chooses an empty node, the player learns the number of neighboring nodes containing mines. (A neighboring node is one connected to the chosen node by an edge.) The player wins if and when all empty nodes have been so chosen.

In the mine consistency problem, you are given a graphG along with numbers labeling some of G’s nodes. You must determine whether a placement of mines on the remaining nodes is possible, so that any node v that is labeled m has exactly m neighboring nodes containing mines. Formulate this problem as a language and show that it isNPcomplete.

Use the construction given in Theorem 1.39 to convert the following two nondeterministic finite automata to equivalent deterministic finite automata.

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.