/*! 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} Q28P Let C={{G,x}|G聽is聽a聽CFG聽x聽i... [FREE SOLUTION] | 91影视

91影视

Let C={{G,x}|GisaCFGxisasubstringofsomeyL(G)}. Show thatC is decidable.

Short Answer

Expert verified

The languageC is decidable.

Step by step solution

01

Context free language.

Context free language is a grammar where its language or string that formed by context free grammar is supports pushdown deterministic automata.

02

The problem is decidable.

Let,C={{G,x}|GisaCFGxisasubstringofsomeyL(G)}.

Showing that,Cis decidable.

Let鈥檚 the following Turing machine M= On input hG, xi,

Where, (G) is a context free grammar.

(a) Let Rbe the following RE .

R=虫危

(b) Create the context free grammar Hsuch that,

L(H)=L(G)L(R)

(c) SubmitG to the decider for ECFG.

(d) If it accepts, then reject.

(e) Else, accept.

Mis clearly a decider since it halts. Also, Maccepts{G,x} .

If f generates some string虫危 in that is some string withx as a substring.

Hence, the languageC is decidable.

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

Study anywhere. Anytime. Across all devices.