Skip to main content

0. Introduction & Halting Problem

PDFContent 30/01/23

Automata - Ways of

Formative LanguageAutomitaReg Ex / Grammar
Type 3Regular LanguagesFinite Automata (Deterministic or Non-Deterministic)Regular Expression
Type 2Context-free LanguagesPush down automitaContext-free grammar
Type 1Context Sensitive LanguagesTuring MachineGrammar
Type 0Recursively Enumerable LanguagesTuring MachineGrammar

Halting Problem

void weird (char *code){
if holts(code, code)
while(n);
else
return;
}

Cannot prove that any program will stop

  • Will Spooner

It is impossible to write a program that decides if another, arbitrary, program terminates (halts) or not