NotesM.Sc ITTheory of Computation
PGCA1927

Theory of Computation Notes

Program:M.Sc IT
Semester:Semester 4
Credits:4
Units:4 Units

Subject Overview

The first Elective-I option, covering formal language theory — finite automata and regular languages, context-free grammars and normal forms, pushdown automata, and Turing machines, computability and computational complexity including the halting problem.

Read more

A 4-credit elective theory paper.

Unit-wise Syllabus

4 units — open any unit for detailed topic-wise notes, diagrams and important exam questions

  • Formal language
  • diagonal argument
  • deterministic and non-deterministic finite automata and their equivalence
  • Mealy and Moore models
  • finite automata minimization
  • regular languages/grammars/expressions
  • pumping lemma
  • non-regular languages
  • lexical analysis

Study guide

This unit covers formal languages, the diagonal argument, DFA and NFA and their equivalence, Mealy and Moore machines, minimisation, regular languages, grammars and expressions, the pumping lemma and lexical analysis. Practise constructing DFAs for given languages.

Read Unit 1 notes
  • Properties of context-free languages
  • Chomsky classification
  • context-free grammars
  • grammar simplification
  • Chomsky Normal Form
  • Greibach Normal Form

Study guide

You study properties of context-free languages, the Chomsky classification, context-free grammars, simplification, Chomsky Normal Form and Greibach Normal Form. Practise converting grammars to CNF.

Read Unit 2 notes
  • Ambiguity
  • parse trees
  • equivalence of PDAs
  • non-deterministic PDA
  • standard Turing machines and variations
  • universal Turing machines
  • Church-Turing thesis
  • recursive and recursively enumerable languages
  • context-sensitive languages
  • Chomsky hierarchy
  • TM construction for simple problems

Study guide

You study ambiguity, parse trees, pushdown automata and equivalence, non-deterministic PDA, Turing machines and variations, universal Turing machines, the Church-Turing thesis, recursive and recursively enumerable languages and the Chomsky hierarchy. Construct Turing machines for simple problems.

Read Unit 3 notes
  • Unsolvable problems
  • the halting problem
  • Post correspondence problem
  • unsolvable problems for context-free languages
  • measuring and classifying complexity
  • tractable and intractable problems

Study guide

You study unsolvable problems, the halting problem, Post correspondence problem, undecidability for CFLs, complexity measurement and tractable versus intractable problems. Understand why the halting problem cannot be solved.

Read Unit 4 notes

Why Theory of Computation Matters

Theory of computation explains what computers can and cannot do, and underlies compiler design, language processing and algorithm theory, as well as GATE and research.

How to Prepare for Theory of Computation

  • Practise automata constructions and proofs.
  • Learn the Chomsky hierarchy as a table of machines and grammars.
  • Understand the intuition behind undecidability.

Theory of Computation: Frequently Asked Questions

What is the halting problem?

It is the problem of deciding whether a given program will stop or run forever, which has been proven impossible to solve in general.

Planning your M.Sc IT in Ludhiana? Study it at SBS.

These notes follow the PTU syllabus taught in the 2-year M.Sc IT at SBS College, Ludhiana. See the course details, eligibility and scholarships.

Want the Complete Notes & Past Papers?

WhatsApp us and we'll send you the full notes, question banks, and previous year papers for Theory of Computation.