FlashKeepers

Computer Science · College

Theory of Computation Basics

Finite automata, regular languages, and Turing machine concepts from an intro theory of computation course.

35 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone
What is a deterministic finite automaton (DFA)?
A finite automaton where each state has exactly one transition for each input symbol.
What is a nondeterministic finite automaton (NFA)?
A finite automaton where a state may have zero, one, or more transitions for each input symbol.
How do DFA and NFA differ in their transition functions?
DFA: one transition per input symbol per state. NFA: zero or more transitions per input symbol per state.
What is an accept state (or final state) in an automaton?
A designated state such that a string is accepted by the automaton if and only if it ends in an accept state after reading the entire input.
Can every NFA be converted to an equivalent DFA?
Yes, using the subset construction, where each DFA state represents a set of NFA states.
When does a DFA accept a string?
When following the transitions for each input symbol in sequence leads to an accept state after the final symbol is consumed.
What is the language of an automaton?
The set of all strings that the automaton accepts.
What is a regular language?
A language that can be recognized by some finite automaton (equivalently, described by a regular expression).
What is a regular expression?
A notation for describing regular languages using the operations union, concatenation, and Kleene star over an alphabet.
What is the relationship between finite automata and regular expressions?
Every language describable by a regular expression is accepted by some finite automaton, and vice versa.
Are regular languages closed under union?
Yes. If L1 and L2 are regular, then L1 union L2 is regular.
Are regular languages closed under concatenation?
Yes. If L1 and L2 are regular, then L1 concatenated with L2 is regular.
Are regular languages closed under Kleene star?
Yes. If L is regular, then L* is regular.
Are regular languages closed under complement?
Yes. If L is regular, then the complement of L (all strings not in L) is regular.
Are regular languages closed under intersection?
Yes. If L1 and L2 are regular, then L1 intersected with L2 is regular.

20 more cards in the app