This course presents a study of Finite State Machines and their languages. It covers the details of finite state automata, regular expressions, context free grammars. More, the course includes design of the Push-down automata and Turing Machines. The course also includes basics of undecidabilty and intractability.
CSC262Semester IV3 credit hours7 units72 solved questions945 study cardsFull study modes
This course presents a study of Finite State Machines and their languages. It covers the details of finite state automata, regular expressions, context free grammars. More, the course includes design of the Push-down automata and Turing Machines. The course also includes basics of undecidabilty and intractability.
The free sample is open to everyone. Sign in for 2 free weeks of every answer, flashcards and progress.
This unit lays the mathematical groundwork for the theory of computation and then opens the subject proper: what an abstract machine is, the alphabets and strings it operates on, and the languages those strings form.
A set is a well defined collection of distinct objects, written in roster form such as $S = {1, 3, 5, 7}$ or in set builder form such as $S = {x : x \text{ is odd and } 0 < x < 9}$. Membership is written $x \in S$, non-membership $x \notin S$. A set $A$ is a subset of $B$, written $A \subseteq B$, if every element of $A$ belongs to $B$; it is a proper subset, $A \subset B$, if additionally $A \neq B$. The empty set $\emptyset$ has no elements, a singleton set has exactly one, and the universal set $U$ is the set of every object under discussion in a given context. The power set $P(S)$ is the set of all subsets of $S$, and if $|S| = n$ then $|P(S)| = 2^n$, since each element is independently included or excluded. The standard operations, union $A \cup B$, intersection $A \cap B$, difference $A - B$, and complement $A' = U - A$, are used constantly in the rest of the subject to describe how the language of one machine relates to the language of another.
Logic studies the form of valid inference: given some assumptions, does a conclusion follow with certainty. In propositional logic, simple declarative sentences (propositions) are combined with connectives (and, or, not, implies) into compound sentences, and the truth value of the compound sentence is fixed once the truth values of its parts are fixed. A predicate, such as $P(x): x > 4$, is not itself a proposition since its truth depends on the unassigned variable $x$; it becomes a proposition once a value is substituted. A quantifier turns a predicate into a proposition without substituting a specific value: the universal quantifier $\forall x, P(x)$ asserts $P(x)$ holds for every $x$ in the domain, and the existential quantifier $\exists x, P(x)$ asserts some $x$ in the domain makes $P(x)$ true. Quantified statements over strings and states are the natural language in which automata definitions and their correctness proofs are phrased throughout this subject.
A function $f: A \to B$ assigns to every element of $A$ exactly one element of $B$; $A$ is the domain, $B$ the codomain, and the range is ${f(x) : x \in A} \subseteq B$. A function is injective if distinct inputs always give distinct outputs, surjective if every element of $B$ is hit by some input, and bijective if it is both, in which case an inverse function exists. A closely related idea is a relation: a binary relation on sets $A$ and $B$ is simply a subset of $A \times B$. A relation $R$ on a set $A$ is an equivalence relation if it is reflexive ($x R x$ for every $x$), symmetric ($x R y \implies y R x$), and transitive ($x R y$ and $y R z \implies x R z$). Equivalence relations matter directly in this subject because two states of an automaton are grouped together during minimization exactly when an equivalence relation ("indistinguishability") holds between them.
A mathematical claim is established by a proof, a finite sequence of logically justified steps from agreed premises to the conclusion. A direct proof assumes the hypothesis and derives the conclusion by a chain of valid inferences. An indirect proof (proof by contrapositive) proves "if $P$ then $Q$" by instead proving "if not $Q$ then not $P$", which is logically equivalent. A proof by contradiction assumes the hypothesis together with the negation of the conclusion and derives an impossibility (such as $1 = 0$), which forces the original conclusion to be true. This subject leans most heavily on proof by contradiction: both the pumping lemma arguments (unit 3 and unit 4) and the undecidability arguments (unit 7) assume a language is regular, context free, or decidable, and derive a contradiction from that assumption. Proof by mathematical induction, where a base case is verified and an inductive step shows truth at $n$ implies truth at $n+1$, is used to define the extended transition function of an automaton over strings of any length from its transition function over single symbols.
Theory of Computation for TU BSc CSIT is covered here in full, from syllabus notes to solved past questions. This subject has 7 chapters mapped to the official syllabus, and 72 past exam questions with written model answers. The opening of every note and answer is free, and the most-searched questions are free in full. A free account gets 2 free weeks of the whole program plus flashcards and progress tracking so weak topics come back before the exam.
This TU BSc CSIT Theory of Computation guide covers Basic Foundations, Introduction to Finite Automata, Regular Expressions, Context Free Grammar, Push Down Automata, Turing Machines, Undecidability and Intractability, across 7 chapters. It includes model answers to 72 past exam questions, plus flashcards for quick revision.
Theory of Computation has 7 chapters mapped to the official syllabus.
Yes. Each of the 72 past questions comes with a written model answer; the most-searched ones are free in full, the rest open with a free account's 2 free weeks or a pass.
Free to start. The opening of every note and answer is free, the most-searched questions are free in full, and a free account gets 2 free weeks of the whole program plus flashcards and progress tracking. After that a program pass keeps everything open.
Based on the official syllabus.
This unit lays the mathematical groundwork for the theory of computation and then opens the subject proper: what an abstract machine is, the alphabets and strings it operates on, and the languages those strings form.
A set is a well defined collection of distinct objects, written in roster form such as or in set builder form such as . Membership is written , non-membership . A set is a subset of , written , if every element of belongs to ; it is a proper subset, , if additionally . The empty set has no elements, a singleton set has exactly one, and the universal set is the set of every object under discussion in a given context. The power set is the set of all subsets of , and if then , since each element is independently included or excluded. The standard operations, union , intersection , difference , and complement , are used constantly in the rest of the subject to describe how the language of one machine relates to the language of another.
Logic studies the form of valid inference: given some assumptions, does a conclusion follow with certainty. In propositional logic, simple declarative sentences (propositions) are combined with connectives (and, or, not, implies) into compound sentences, and the truth value of the compound sentence is fixed once the truth values of its parts are fixed. A predicate, such as , is not itself a proposition since its truth depends on the unassigned variable ; it becomes a proposition once a value is substituted. A quantifier turns a predicate into a proposition without substituting a specific value: the universal quantifier asserts holds for every in the domain, and the existential quantifier asserts some in the domain makes true. Quantified statements over strings and states are the natural language in which automata definitions and their correctness proofs are phrased throughout this subject.
A function assigns to every element of exactly one element of ; is the domain, the codomain, and the range is . A function is injective if distinct inputs always give distinct outputs, surjective if every element of is hit by some input, and bijective if it is both, in which case an inverse function exists. A closely related idea is a relation: a binary relation on sets and is simply a subset of . A relation on a set is an equivalence relation if it is reflexive ( for every ), symmetric (), and transitive ( and ). Equivalence relations matter directly in this subject because two states of an automaton are grouped together during minimization exactly when an equivalence relation ("indistinguishability") holds between them.
A mathematical claim is established by a proof, a finite sequence of logically justified steps from agreed premises to the conclusion. A direct proof assumes the hypothesis and derives the conclusion by a chain of valid inferences. An indirect proof (proof by contrapositive) proves "if then " by instead proving "if not then not ", which is logically equivalent. A proof by contradiction assumes the hypothesis together with the negation of the conclusion and derives an impossibility (such as ), which forces the original conclusion to be true. This subject leans most heavily on proof by contradiction: both the pumping lemma arguments (unit 3 and unit 4) and the undecidability arguments (unit 7) assume a language is regular, context free, or decidable, and derive a contradiction from that assumption. Proof by mathematical induction, where a base case is verified and an inductive step shows truth at implies truth at , is used to define the extended transition function of an automaton over strings of any length from its transition function over single symbols.