Algorithms · অ্যালগরিদম


Theory of Computation: Regex, Automata and Grammarsকম্পিউটেশন তত্ত্ব: রেগেক্স, অটোমেটা ও গ্রামার

Introduction

Theory of Computation is the branch of computer science that asks two big questions: What can be computed? and How do we describe patterns and languages precisely? It gives us the mathematical machines and grammars behind compilers, search engines, text-matching (regex), and the very definition of an "algorithm."

For BCS, Bank IT, and IT-officer exams this topic is a reliable source of MCQs: regular expressions, DFA/NFA, the pumping lemma, context-free grammars, pushdown automata, the Chomsky hierarchy, and the Turing machine. The questions are conceptual and rarely need heavy calculation, so a clear mental model wins marks fast.

Learning objectives

  • Define alphabet, string, and language precisely.
  • Read and write regular expressions for given patterns.
  • Draw and trace DFA and NFA state diagrams; explain NFA-to-DFA conversion.
  • Use the pumping lemma to prove a language is not regular.
  • Build context-free grammars, derivations, and parse trees; spot ambiguity.
  • Explain the pushdown automaton and the Turing machine at a concept level.
  • Place every language class in the Chomsky hierarchy (Type 0–3).
  • Perform left-recursion elimination on a grammar.

Continue this lesson free: create an account

You have read the opening of this lesson. The full lesson (2,938 words, in English and Bangla) has worked examples, practice questions with answers and exam tips. A free account opens it and saves your progress.পুরো পাঠটি পড়তে বিনামূল্যে অ্যাকাউন্ট খুলুন।

More on this subject: Algorithms guide: syllabus by chapter and past questions

© 2026 ARBS Academy (Aether Brains). Questions' explanations, model answers and lessons are our original work; copying or republishing is not allowed.

© ২০২৬ এআরবিএস একাডেমি (Aether Brains)। প্রশ্নের ব্যাখ্যা, মডেল উত্তর ও লেসন আমাদের নিজস্ব কাজ; কপি বা পুনঃপ্রকাশ করা নিষেধ।