FlashKeepers

Discrete Math · College · College and University

Discrete Math: Formal Languages and Automata

Formal languages, regular expressions, and finite automata basics from an intro discrete mathematics course.

About this set

29 basic cards for College Discrete Math. Set 4 of 11 in Discrete Math. It opens with "What is a formal alphabet?" and "Define a string (or word) over an alphabet Σ". Study it alongside the other College sets below.

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

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is a formal alphabet?
Show answerA finite, non-empty set of symbols, usually denoted Σ, used to form strings in a formal language.
Define a string (or word) over an alphabet Σ.
Show answerA finite sequence of symbols from Σ, written consecutively without spaces or punctuation.
Define a formal language.
Show answerA set of strings over a given alphabet, where each string is a finite sequence of symbols from that alphabet.
What is the Kleene star (L*) of a language L?
Show answerThe set of all strings formed by concatenating zero or more strings from L, including the empty string.
What is the union of two languages L1 and L2?
Show answerThe set of all strings that belong to either L1 or L2 (or both), denoted L1 ∪ L2.
What is the concatenation of two languages L1 and L2?
Show answerThe set of all strings formed by concatenating a string from L1 with a string from L2, denoted L1·L2 or L1L2.
What is a regular language?
Show answerA language that can be recognized by a finite automaton, or equivalently, a language that can be described by a regular expression.
What is a deterministic finite automaton (DFA)?
Show answerA finite state machine where each state has exactly one transition for each input symbol, and it accepts or rejects a string based on whether it ends in an accepting state.
What is a nondeterministic finite automaton (NFA)?
Show answerA finite state machine where a state may have zero, one, or multiple transitions for the same input symbol, or epsilon transitions that require no input.
In the context of finite automata, what is a state?
Show answerA node in the automaton that represents a configuration or memory of the machine during its operation.
What is a transition function in a finite automaton?
Show answerA function δ(q, a) that maps a state q and input symbol a to a next state (or set of states in an NFA), or is undefined if no transition exists.
What is an accepting state (or final state) in a finite automaton?
Show answerA designated state from which, if the automaton arrives at it after reading the entire input string, the string is accepted by the automaton.
What is the start state of a finite automaton?
Show answerThe designated initial state where the automaton begins processing an input string, usually denoted q0.
What does it mean for a string to be accepted by a DFA?
Show answerThe string is accepted if, starting from the start state and following transitions for each symbol in the string, the DFA ends in an accepting state.
What is the key property of transitions in a DFA?
Show answerFor each state and each input symbol, there is exactly one outgoing transition, making the next state unique and deterministic.

14 more cards in the app

Study this set free