1. Home
  2. Explore
  3. Computer Science
  4. Computability Theory Introduction

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Computability Theory Introduction

Speaker 1Speaker 2

Computability Theory Introduction

4:16
0:00-4:16
  1. Anna

    So Michael, we're diving into the theory of computation today. Professor Sipser kicked off with a big picture. The course splits into two halves: first, computability theory—what you can compute in principle—and then complexity theory, which asks what you can compute in practice, like within a reasonable amount of time.

  2. Michael

    Exactly. And he emphasized that computability theory is mostly a closed field—they resolved the big questions back in the 1950s. But complexity theory is still wide open, with famous problems like P versus NP. That's where we'll spend a lot of time later.

  3. Anna

    Right. But before we get to that, we need a model of computation. The first model is the finite automaton—a simple machine with a small, fixed amount of memory. Sipser introduced it with a diagram: states, transitions, a start state, and accepting states.

  4. Michael

    Let me describe the example he gave. Machine M1 has three states: q1, q2, and q3. q1 is the start state, and q3 is the only accept state. You feed in a string of 0s and 1s, and you follow the arrows. For instance, on input 01101 you end at q3, so it's accepted. On 00101 you end at q2, so it's rejected.

  5. Anna

    And what language does M1 recognize? All strings that contain the substring '11', because that's what forces you into q3. That set of strings is the language of the machine. We say the machine recognizes that language.

  6. Michael

    Now, to be precise, we need a formal definition. A finite automaton is a 5-tuple: Q (finite set of states), Σ (alphabet), δ (transition function), q0 (start state), and F (set of accept states). δ takes a state and an input symbol and returns the next state. That's how we capture the diagram mathematically.

  7. Anna

    Right. And we also define strings and languages. A language is just a set of strings. The empty string ε is length zero, and the empty language ∅ has no strings—they're different things. Then we say a language is regular if some finite automaton recognizes it.

  8. Michael

    So M1's language—strings containing '11'—is regular. Another example: the language of strings with an even number of 1s is regular. You can design a two-state automaton that tracks parity. But the language of strings with an equal number of 0s and 1s is not regular—we'll prove that later.

  9. Anna

    To explore regular languages, we introduce regular operations: union, concatenation, and star. Union is like set union: all strings in either language. Concatenation: take every string from A and every from B and glue them together. Star: take any finite number of strings from A, concatenate them, and that includes the empty string.

  10. Michael

    And these operations let us build regular expressions. For example, (0 ∪ 1)* 1 is all strings that end with 1. Or (0 ∪ 1)* 11 (0 ∪ 1)* is all strings containing 11—same as M1's language. Amazingly, regular expressions and finite automata describe exactly the same class of languages: the regular languages.

  11. Anna

    That equivalence is a key theorem we'll prove. But first, Sipser proved that regular languages are closed under union. That means if A1 and A2 are regular, then A1 ∪ A2 is also regular. The proof constructs a new automaton that runs both original automata in parallel.

  12. Michael

    Right. Given M1 for A1 and M2 for A2, the new machine M has states that are pairs (state from M1, state from M2). The start state is (q1, q2). The transition function updates both components using the original transition functions. And the accept states are those pairs where at least one component is an accept state. That way, M accepts if either M1 or M2 would accept.

  13. Anna

    And a quick check: if M1 has k1 states and M2 has k2 states, then M has k1 × k2 states, because you need all possible pairs. That's the product construction. He also noted that if we mistakenly required both components to be accept states, that would give intersection instead of union.

  14. Michael

    We ended with a preview of closure under concatenation. It's trickier because you don't know where to split the input. The naive idea of connecting accept states of M1 to the start of M2 fails—you might guess the split point wrong. But it is still true, and we'll see the correct proof next time.

  15. Anna

    Great summary. So we've set the stage: finite automata, regular languages, regular expressions, and our first closure proof. Plenty to build on in the next lecture.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent