Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Show that the following problem is NP-complete. You are given a set of states Q={q0,q1,...,ql}and a collection of pairs {s1,r1,.......,sk,rk} where the siare distinct strings over role="math" localid="1663239026093" ={0,1}, and the riare (not necessarily distinct) members of Q. Determine whether a role="math" localid="1663238989670" DFAM=(Q,,?,q0,F)exists whererole="math" localid="1663239087484" ?(q0,si)=riforeachi . Here, role="math" localid="1663239126896" ?(q,s)is the state that M enters after reading s, starting at state q.

Short Answer

Expert verified

Fis satisfiable iffthere is some DFAthat satisfyCandR . Reduction is taking some polynomial time. Therefore, given problem is NP-complete.

Step by step solution

01

Introduction

Correct DFA which satisfyCconstraints and in polynomial time $\pi$ can be guessed by Non Deterministic Turing Machine iff such DFA available or exist.

For showing that problem is NP complete reduce it to polynomial time.

Consider the formula$F=\wedge_{j=1}^{m}R_{j}$where$R_{j}=\left(s_{j}\veeu_{j}\right)$and construction some constraints Cand$\Pi$$C=\left\{c_{T},c_{1},c_{2}\right\}$ are states.

Creating pair $\left(\\varepsilon,c_{F}\right){text{in}}\Pi\user1{\text{forenforcing}}c_{F}$as starting state.

02

Explanation

Every variable belongs to $F\text{willcreatethepairs}\left(s\bars{s},c_{T}\right)$and $\left(\bar{s},c_{T}\right)$.

Every clause $R_{j}^{\prime}$' in formula will have pair in localid="1663237422355" $\Pi{t\text{thatis}}\user1\left(s\#_{s},c_{1}\right$c_{and $\left(\bar{s}\#_{s},c_{2}\right)$that enforces that when reading and $\bar{s},DFA$must be in different state.

Choose any s in F. Now for $\forall$variable t create other three points in $\Pi.\left(s\bar{s}t,c_{T}\right),\left\#_{s}t,c_{1}\right)\left(\bar{s}\#_{s}t,c_{2}\right)$

F is satisfiable iff there is some DFA that satisfy CandR. Reduction is taking some polynomial time. Therefore given problem is NP-complete.

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 Vaia!

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.

Sign-up for free