Saturday, January 24, 2026

day one of theory of computation

 1. The Three Pillars of ToC 

2. Basic Definitions (The Vocabulary) 
To begin, you must master these fundamental building blocks: 
  • Symbol: The smallest unit of data (e.g., 0, 1, a, b).
  • Alphabet (
    Σcap sigma
    ):
    A finite, non-empty set of symbols (e.g., binary
    Σ={0,1}cap sigma equals the set 0 comma 1 end-set
    ).
  • String: A finite sequence of symbols from an alphabet (e.g., 0101).
  • Language: A set of strings (e.g., the set of all binary strings that end in 1). 
3. Introduction to Finite Automata (FA) 
The first model usually introduced is the Finite State Machine, which has no external memory. 
  • Deterministic Finite Automata (DFA): For every state and input symbol, there is exactly one transition to a next state.
  • Non-Deterministic Finite Automata (NFA): Can have multiple possible next states for the same input, providing a more flexible but equivalent model for regular languages. 

No comments:

Post a Comment

Day three of theory of computation

 1. Non-deterministic Finite Automata (NFA)   Unlike a DFA, an NFA allows a machine to explore multiple paths simultaneously.   Definition: ...