SlideShare una empresa de Scribd logo
1 de 2
Descargar para leer sin conexión
1. Show that single-tape TMs that cannot write on the portion of the tape containing the
input string recognize only regular languages.
Answer: Let M = (Q, Σ, Γ, q0, qaccept, qreject) be a single-tape TM that cannot write on the
input portion of the tape. A typical case when M works on an input string x is as follows:
the tape head will stay in the input portion for some time, and then enter the non-input
portion (i.e., the portion of the tape on the right of the |x|th
cells) and stay there for some
time, then go back to the input portion, and stay there for some time, and then enter the
non-input portion, and so on. We call the event that the tape head switches from input
portion to non-input portion an out event, and the event that the tape head switches from
non-input portion to input-portion an in event.
Let firstx denote the state that M is in just after its first “out” event (i.e., the state of M
when it first enters the non-input portion). In case M never enters the non-input portion,
we assign firstx = qaccept if M accepts x, and assign firstx = qreject if M does not accept x.
Next, we define a characteristic function fx such that for any q ∈ Q, fx(q) = q implies that
if M is at state q and about to perform an “in” event, the next “out” event will change M
in state q ; in case M never enters the non-input portion again, we assign fx(q) = qaccept if
M enters the accept state inside the input portion, and qreject otherwise.
It is easy to check that if for two strings x and y, if firstx = firsty and for all q, fx(q) = fy(q),
we have x and y are indistinguishable by M. (That is, M accepts xz if and only if M
accepts yz.) As there are finite choices of firstx and fx (precisely, |Q||Q|+1
such choices),
the number of distinguishable strings are finite. By Myhill-Nerode theorem, the language
recognized by M is regular.
2. Let A be a Turing-recognizable language consisting of descriptions of Turing machines,
{ M1 , M2 , . . .}, where every Mi is a decider. Prove that some decidable language D is
not decided by any decider Mi whose description appears in A.†
(Hint: You may find it
helpful to consider an enumerator for A, and re-visit the diagonalization technique.)
Answer: Since A is Turing-recognizable, there exists an enumerator E that enumerates
it. In particular, we let Mi be the ith
output of E (note: Mi may not be distinct).
Let s1, s2, s3 . . . be the list of all possible strings in {0, 1}∗
. Now, we define a TM D as
follows:
D = “On input w:
1. If w /∈ {0, 1}∗
, reject.
2. Else, w is equal to si for a specific i.
3. Use E to enumerate M1 , M2 , . . . until Mi .
4. Run Mi on input w.
5. If Mi accepts, reject. Otherwise, accept.”
1
THEORY OF COMPUTATION
Our online Tutors are available 24*7 to provide Help with Theory Of Computation
Homework/Assignment or a long term Graduate/Undergraduate Theory Of Computation Project. Our
Tutors being experienced and proficient in Theory Of Computation sensure to provide high quality
Theory Of Computation Homework Help. Upload your Theory Of Computation Assignment at ‘Submit
Your Assignment’ button or email it to info@assignmentpedia.com. You can use our ‘Live Chat’ option to
schedule an Online Tutoring session with our Theory Of Computation Tutors.
Clearly, D is a decider (why??). However, D is different from any Mi (why??), so that D
is not in A.
3. Let E = { M | M is a DFA that accepts some string with more 1s than 0s}. Show that
E is decidable. (Hint: Theorems about CFLs are helpful here.)
Answer: Let A = {x | x has more 1s than 0s}. The language A is context-free, as we can
easily construct a PDA to recognize A. Now, we construct the TM M below to decide E
as follows:
M = “On input M where M is a DFA:
1. Construct B = A ∩ L(M). Note that B is CFL, since L(M) is regular and A is CFL.
2. Test whether B is empty.
3. If yes, reject. Otherwise, accept.
4. Let C be a language. Prove that C is Turing-recognizable if and only if a decidable language
D exists such that C = {x | ∃y( x, y ∈ D)}.
Answer: If D exists, we can construct a TM M such that we search each possible string
y, and testing whether x, y ∈ D. If such y exists, accept. Such a machine M will accept
any string in C in finite steps, so C is Turing-recognizable.
If C is recognized by some TM M, we define D = { x, y | M accepts x within |y| steps }.
Clearly, D is decidable. Also, x ∈ C if and only if there exists y such that x, y ∈ D.
Thus, C = {x | ∃y( x, y ∈ D)}.
5. (Bonus Question) Show that the problem of determining whether a CFG generates all
string in 1∗
is decidable. In other words, show that { G | G is a CFG over {0, 1} and 1∗
⊆
L(G)} is a decidable language.
Answer: Please discussed the solution with Yu-Han directly.
2visit us at www.assignmentpedia.com or email us at info@assignmentpedia.com or call us at +1 520 8371215

Más contenido relacionado

La actualidad más candente

Thoery of Computaion and Chomsky's Classification
Thoery of Computaion and Chomsky's ClassificationThoery of Computaion and Chomsky's Classification
Thoery of Computaion and Chomsky's ClassificationPrafullMisra
 
Formal methods 1 - introduction
Formal methods   1 - introductionFormal methods   1 - introduction
Formal methods 1 - introductionVlad Patryshev
 
Linear Block Codes
Linear Block CodesLinear Block Codes
Linear Block CodesNilaNila16
 
Problem set3 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set3 | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurProblem set3 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set3 | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurVivekananda Samiti
 
Benginning Calculus Lecture notes 2 - limits and continuity
Benginning Calculus Lecture notes 2 - limits and continuityBenginning Calculus Lecture notes 2 - limits and continuity
Benginning Calculus Lecture notes 2 - limits and continuitybasyirstar
 
Error Detection and Correction in SRAM Cell Using Decimal Matrix Code
Error Detection and Correction in SRAM Cell Using Decimal Matrix CodeError Detection and Correction in SRAM Cell Using Decimal Matrix Code
Error Detection and Correction in SRAM Cell Using Decimal Matrix Codeiosrjce
 
Theory of Computation Lecture Notes
Theory of Computation Lecture NotesTheory of Computation Lecture Notes
Theory of Computation Lecture NotesFellowBuddy.com
 
Identitieslong
IdentitieslongIdentitieslong
Identitieslongaichelle
 
Kolmogorov Complexity, Art, and all that
Kolmogorov Complexity, Art, and all thatKolmogorov Complexity, Art, and all that
Kolmogorov Complexity, Art, and all thatAleksandar Bradic
 

La actualidad más candente (19)

Thoery of Computaion and Chomsky's Classification
Thoery of Computaion and Chomsky's ClassificationThoery of Computaion and Chomsky's Classification
Thoery of Computaion and Chomsky's Classification
 
linear codes and cyclic codes
linear codes and cyclic codeslinear codes and cyclic codes
linear codes and cyclic codes
 
Hamming codes
Hamming codesHamming codes
Hamming codes
 
Formal methods 1 - introduction
Formal methods   1 - introductionFormal methods   1 - introduction
Formal methods 1 - introduction
 
Linear Block Codes
Linear Block CodesLinear Block Codes
Linear Block Codes
 
Problem set3 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set3 | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurProblem set3 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Problem set3 | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
 
Benginning Calculus Lecture notes 2 - limits and continuity
Benginning Calculus Lecture notes 2 - limits and continuityBenginning Calculus Lecture notes 2 - limits and continuity
Benginning Calculus Lecture notes 2 - limits and continuity
 
Error Detection and Correction in SRAM Cell Using Decimal Matrix Code
Error Detection and Correction in SRAM Cell Using Decimal Matrix CodeError Detection and Correction in SRAM Cell Using Decimal Matrix Code
Error Detection and Correction in SRAM Cell Using Decimal Matrix Code
 
Basics of coding theory
Basics of coding theoryBasics of coding theory
Basics of coding theory
 
5 linear block codes
5 linear block codes5 linear block codes
5 linear block codes
 
Ch10 2 v1
Ch10 2 v1Ch10 2 v1
Ch10 2 v1
 
Cn lec-06
Cn lec-06Cn lec-06
Cn lec-06
 
Theory of Computation Lecture Notes
Theory of Computation Lecture NotesTheory of Computation Lecture Notes
Theory of Computation Lecture Notes
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
Identitieslong
IdentitieslongIdentitieslong
Identitieslong
 
Section 2.4
Section 2.4Section 2.4
Section 2.4
 
Convolution
ConvolutionConvolution
Convolution
 
Kolmogorov Complexity, Art, and all that
Kolmogorov Complexity, Art, and all thatKolmogorov Complexity, Art, and all that
Kolmogorov Complexity, Art, and all that
 

Destacado

Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)FellowBuddy.com
 
MIS assignment for share
MIS assignment for shareMIS assignment for share
MIS assignment for sharehoneyshah
 
Cs6503 theory of computation november december 2015 be cse anna university q...
Cs6503 theory of computation november december 2015  be cse anna university q...Cs6503 theory of computation november december 2015  be cse anna university q...
Cs6503 theory of computation november december 2015 be cse anna university q...appasami
 
Cs2303 theory of computation all anna University question papers
Cs2303 theory of computation all anna University question papersCs2303 theory of computation all anna University question papers
Cs2303 theory of computation all anna University question papersappasami
 

Destacado (6)

Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
 
Mis assignment
Mis assignmentMis assignment
Mis assignment
 
Theory of computation assignment help
Theory of computation assignment helpTheory of computation assignment help
Theory of computation assignment help
 
MIS assignment for share
MIS assignment for shareMIS assignment for share
MIS assignment for share
 
Cs6503 theory of computation november december 2015 be cse anna university q...
Cs6503 theory of computation november december 2015  be cse anna university q...Cs6503 theory of computation november december 2015  be cse anna university q...
Cs6503 theory of computation november december 2015 be cse anna university q...
 
Cs2303 theory of computation all anna University question papers
Cs2303 theory of computation all anna University question papersCs2303 theory of computation all anna University question papers
Cs2303 theory of computation all anna University question papers
 

Similar a Theory of computation homework help

Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptxWinter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptxHarisPrince
 
practice-final-soln.pdf
practice-final-soln.pdfpractice-final-soln.pdf
practice-final-soln.pdfT17Rockstar
 
Winter 11 Lecture Reducibility.pptx
Winter 11 Lecture Reducibility.pptxWinter 11 Lecture Reducibility.pptx
Winter 11 Lecture Reducibility.pptxHarisPrince
 
Chapter 7 Undecidable Reducible_Theory_of_Computation.ppt
Chapter 7 Undecidable Reducible_Theory_of_Computation.pptChapter 7 Undecidable Reducible_Theory_of_Computation.ppt
Chapter 7 Undecidable Reducible_Theory_of_Computation.pptgiwix86938
 
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
Busy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docxBusy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docx
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docxjasoninnes20
 
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
Busy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docxBusy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docx
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docxclairbycraft
 
pnp2.ppt
pnp2.pptpnp2.ppt
pnp2.pptham111
 
The complexity of promise problems with applications to public-key cryptography
The complexity of promise problems with applications to public-key cryptographyThe complexity of promise problems with applications to public-key cryptography
The complexity of promise problems with applications to public-key cryptographyXequeMateShannon
 
P-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.pptP-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.pptHetansheeShah2
 
Winter 9 Decidability.pptx
Winter 9 Decidability.pptxWinter 9 Decidability.pptx
Winter 9 Decidability.pptxHarisPrince
 
Undecidability.pptx
Undecidability.pptxUndecidability.pptx
Undecidability.pptxPEzhumalai
 
Theoryofcomp science
Theoryofcomp scienceTheoryofcomp science
Theoryofcomp scienceRaghu nath
 

Similar a Theory of computation homework help (20)

Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptxWinter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
 
practice-final-soln.pdf
practice-final-soln.pdfpractice-final-soln.pdf
practice-final-soln.pdf
 
QB104545.pdf
QB104545.pdfQB104545.pdf
QB104545.pdf
 
Winter 11 Lecture Reducibility.pptx
Winter 11 Lecture Reducibility.pptxWinter 11 Lecture Reducibility.pptx
Winter 11 Lecture Reducibility.pptx
 
lect_23.pdf
lect_23.pdflect_23.pdf
lect_23.pdf
 
Chapter 7 Undecidable Reducible_Theory_of_Computation.ppt
Chapter 7 Undecidable Reducible_Theory_of_Computation.pptChapter 7 Undecidable Reducible_Theory_of_Computation.ppt
Chapter 7 Undecidable Reducible_Theory_of_Computation.ppt
 
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
Busy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docxBusy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docx
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
 
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
Busy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docxBusy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docx
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
 
pnp2.ppt
pnp2.pptpnp2.ppt
pnp2.ppt
 
The complexity of promise problems with applications to public-key cryptography
The complexity of promise problems with applications to public-key cryptographyThe complexity of promise problems with applications to public-key cryptography
The complexity of promise problems with applications to public-key cryptography
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
P-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.pptP-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.ppt
 
New version
New versionNew version
New version
 
Winter 9 Decidability.pptx
Winter 9 Decidability.pptxWinter 9 Decidability.pptx
Winter 9 Decidability.pptx
 
Programming Exam Help
Programming Exam Help Programming Exam Help
Programming Exam Help
 
Undecidability.pptx
Undecidability.pptxUndecidability.pptx
Undecidability.pptx
 
Iteration Techniques
Iteration TechniquesIteration Techniques
Iteration Techniques
 
NP completeness
NP completenessNP completeness
NP completeness
 
Theoryofcomp science
Theoryofcomp scienceTheoryofcomp science
Theoryofcomp science
 

Más de Assignmentpedia

Transmitter side components
Transmitter side componentsTransmitter side components
Transmitter side componentsAssignmentpedia
 
Single object range detection
Single object range detectionSingle object range detection
Single object range detectionAssignmentpedia
 
Sequential radar tracking
Sequential radar trackingSequential radar tracking
Sequential radar trackingAssignmentpedia
 
Radar cross section project
Radar cross section projectRadar cross section project
Radar cross section projectAssignmentpedia
 
Radar application project help
Radar application project helpRadar application project help
Radar application project helpAssignmentpedia
 
Parallel computing homework help
Parallel computing homework helpParallel computing homework help
Parallel computing homework helpAssignmentpedia
 
Network costing analysis
Network costing analysisNetwork costing analysis
Network costing analysisAssignmentpedia
 
Matlab simulation project
Matlab simulation projectMatlab simulation project
Matlab simulation projectAssignmentpedia
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming projectAssignmentpedia
 
Image processing project using matlab
Image processing project using matlabImage processing project using matlab
Image processing project using matlabAssignmentpedia
 
Help with root locus homework1
Help with root locus homework1Help with root locus homework1
Help with root locus homework1Assignmentpedia
 
Computer Networks Homework Help
Computer Networks Homework HelpComputer Networks Homework Help
Computer Networks Homework HelpAssignmentpedia
 
Econometrics Homework Help
Econometrics Homework HelpEconometrics Homework Help
Econometrics Homework HelpAssignmentpedia
 
Help With Digital Communication Project
Help With  Digital Communication ProjectHelp With  Digital Communication Project
Help With Digital Communication ProjectAssignmentpedia
 

Más de Assignmentpedia (20)

Transmitter side components
Transmitter side componentsTransmitter side components
Transmitter side components
 
Single object range detection
Single object range detectionSingle object range detection
Single object range detection
 
Sequential radar tracking
Sequential radar trackingSequential radar tracking
Sequential radar tracking
 
Resolution project
Resolution projectResolution project
Resolution project
 
Radar cross section project
Radar cross section projectRadar cross section project
Radar cross section project
 
Radar application project help
Radar application project helpRadar application project help
Radar application project help
 
Parallel computing homework help
Parallel computing homework helpParallel computing homework help
Parallel computing homework help
 
Network costing analysis
Network costing analysisNetwork costing analysis
Network costing analysis
 
Matlab simulation project
Matlab simulation projectMatlab simulation project
Matlab simulation project
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming project
 
Links design
Links designLinks design
Links design
 
Image processing project using matlab
Image processing project using matlabImage processing project using matlab
Image processing project using matlab
 
Help with root locus homework1
Help with root locus homework1Help with root locus homework1
Help with root locus homework1
 
Transmitter subsystem
Transmitter subsystemTransmitter subsystem
Transmitter subsystem
 
Computer Networks Homework Help
Computer Networks Homework HelpComputer Networks Homework Help
Computer Networks Homework Help
 
Econometrics Homework Help
Econometrics Homework HelpEconometrics Homework Help
Econometrics Homework Help
 
Video Codec
Video CodecVideo Codec
Video Codec
 
Radar Spectral Analysis
Radar Spectral AnalysisRadar Spectral Analysis
Radar Spectral Analysis
 
Pi Controller
Pi ControllerPi Controller
Pi Controller
 
Help With Digital Communication Project
Help With  Digital Communication ProjectHelp With  Digital Communication Project
Help With Digital Communication Project
 

Último

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 

Theory of computation homework help

  • 1. 1. Show that single-tape TMs that cannot write on the portion of the tape containing the input string recognize only regular languages. Answer: Let M = (Q, Σ, Γ, q0, qaccept, qreject) be a single-tape TM that cannot write on the input portion of the tape. A typical case when M works on an input string x is as follows: the tape head will stay in the input portion for some time, and then enter the non-input portion (i.e., the portion of the tape on the right of the |x|th cells) and stay there for some time, then go back to the input portion, and stay there for some time, and then enter the non-input portion, and so on. We call the event that the tape head switches from input portion to non-input portion an out event, and the event that the tape head switches from non-input portion to input-portion an in event. Let firstx denote the state that M is in just after its first “out” event (i.e., the state of M when it first enters the non-input portion). In case M never enters the non-input portion, we assign firstx = qaccept if M accepts x, and assign firstx = qreject if M does not accept x. Next, we define a characteristic function fx such that for any q ∈ Q, fx(q) = q implies that if M is at state q and about to perform an “in” event, the next “out” event will change M in state q ; in case M never enters the non-input portion again, we assign fx(q) = qaccept if M enters the accept state inside the input portion, and qreject otherwise. It is easy to check that if for two strings x and y, if firstx = firsty and for all q, fx(q) = fy(q), we have x and y are indistinguishable by M. (That is, M accepts xz if and only if M accepts yz.) As there are finite choices of firstx and fx (precisely, |Q||Q|+1 such choices), the number of distinguishable strings are finite. By Myhill-Nerode theorem, the language recognized by M is regular. 2. Let A be a Turing-recognizable language consisting of descriptions of Turing machines, { M1 , M2 , . . .}, where every Mi is a decider. Prove that some decidable language D is not decided by any decider Mi whose description appears in A.† (Hint: You may find it helpful to consider an enumerator for A, and re-visit the diagonalization technique.) Answer: Since A is Turing-recognizable, there exists an enumerator E that enumerates it. In particular, we let Mi be the ith output of E (note: Mi may not be distinct). Let s1, s2, s3 . . . be the list of all possible strings in {0, 1}∗ . Now, we define a TM D as follows: D = “On input w: 1. If w /∈ {0, 1}∗ , reject. 2. Else, w is equal to si for a specific i. 3. Use E to enumerate M1 , M2 , . . . until Mi . 4. Run Mi on input w. 5. If Mi accepts, reject. Otherwise, accept.” 1 THEORY OF COMPUTATION Our online Tutors are available 24*7 to provide Help with Theory Of Computation Homework/Assignment or a long term Graduate/Undergraduate Theory Of Computation Project. Our Tutors being experienced and proficient in Theory Of Computation sensure to provide high quality Theory Of Computation Homework Help. Upload your Theory Of Computation Assignment at ‘Submit Your Assignment’ button or email it to info@assignmentpedia.com. You can use our ‘Live Chat’ option to schedule an Online Tutoring session with our Theory Of Computation Tutors.
  • 2. Clearly, D is a decider (why??). However, D is different from any Mi (why??), so that D is not in A. 3. Let E = { M | M is a DFA that accepts some string with more 1s than 0s}. Show that E is decidable. (Hint: Theorems about CFLs are helpful here.) Answer: Let A = {x | x has more 1s than 0s}. The language A is context-free, as we can easily construct a PDA to recognize A. Now, we construct the TM M below to decide E as follows: M = “On input M where M is a DFA: 1. Construct B = A ∩ L(M). Note that B is CFL, since L(M) is regular and A is CFL. 2. Test whether B is empty. 3. If yes, reject. Otherwise, accept. 4. Let C be a language. Prove that C is Turing-recognizable if and only if a decidable language D exists such that C = {x | ∃y( x, y ∈ D)}. Answer: If D exists, we can construct a TM M such that we search each possible string y, and testing whether x, y ∈ D. If such y exists, accept. Such a machine M will accept any string in C in finite steps, so C is Turing-recognizable. If C is recognized by some TM M, we define D = { x, y | M accepts x within |y| steps }. Clearly, D is decidable. Also, x ∈ C if and only if there exists y such that x, y ∈ D. Thus, C = {x | ∃y( x, y ∈ D)}. 5. (Bonus Question) Show that the problem of determining whether a CFG generates all string in 1∗ is decidable. In other words, show that { G | G is a CFG over {0, 1} and 1∗ ⊆ L(G)} is a decidable language. Answer: Please discussed the solution with Yu-Han directly. 2visit us at www.assignmentpedia.com or email us at info@assignmentpedia.com or call us at +1 520 8371215