Properties of recursively enumerable sets
AnswerA set of strings is recursively enumerable (RE) if a TM recognizes it, halting and accepting every member; it may reject or…
Read more →AnswerA set of strings is recursively enumerable (RE) if a TM recognizes it, halting and accepting every member; it may reject or…
Read more →AnswerIf L is regular, there exists p≥1 such that every w∈L of length at least p can be split w=xyz with |xy|≤p,…
Read more →AnswerA Mealy machine produces output on transitions, λ:Q×Σ→Γ. A Moore machine produces output on states, λ:Q→Γ. For a binary identity transducer, a…
Read more →AnswerAssume nonnegative integers a,b encoded in unary as 1ᵃ#1ᵇ. Replace the separator # with 1, then erase the last 1 to leave…
Read more →AnswerUse states A (no relevant suffix), B (ends in 0), C (ends in 01). Start A; accept A,B. On 0,1 respectively: A→B,A;…
Read more →AnswerUse residues r0,r1,r2; start and accept r0. On 0,1 respectively: r0→r0,r1; r1→r2,r0; r2→r1,r2. Reading a bit b changes residue to (2r+b) mod…
Read more →AnswerB is nonproductive: every production for B contains B. Delete B and all rules containing it. Remaining S→Ca, A→a, C→b. A is…
Read more →AnswerFrom q0 reach q2 for the first time via 1*01*0. From q2 return to q2 either via 01*0 or via 11*01*0 (the…
Read more →AnswerThe word aaa has two distinct leftmost derivations: S⇒SS⇒SSS⇒aSS⇒aaS⇒aaa (left grouping), and S⇒SS⇒aS⇒aSS⇒aaS⇒aaa (right grouping). Their trees group (aa)a and a(aa). Therefore…
Read more →AnswerUse S→aSc|aBc and B→bB|b. Each recursive S step adds a matching a,c pair; the base ensures at least one pair. B generates…
Read more →Ask a study question in English or Hindi. I will find relevant passages from our notes.