CS 390 Midterm Review

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

flashcard set

Earn XP

Description and Tags

Module 2

Last updated 3:42 PM on 9/15/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

12 Terms

1
New cards

Finite Automata

a mathematical model of computation based on the ideas of a system changing state due to inputs supplied to it. Some of these states are acceptor or final states

2
New cards

Finite Automation

a collection of states in which we make transitions based upon input symbols. Defined as a 5-tuple (Q,Σ,q0,A,δ) 

3
New cards

Q

finite set of states

4
New cards

Σ

finite input alphabet

5
New cards

q0∈Q

the initial state

6
New cards

A⊆Q 

the set of accepting states

7
New cards

δ:Q×Σ→Q 

the transition function

8
New cards

Regular language

a language is regular if there’s a DFA that accepts it. It can be described by a regular expression. Example: Strings ending in “01,” even number of 0s, and strings with “001” substring

9
New cards

death state

a non-accepting state that absorbs all invalid inputs

10
New cards

DFA characterisitcs

  • Deterministic: single transition per state/symbol

  • Fast: O(n) time complexity for scanning

  • Memory: O(m) for pattern length m


11
New cards

NFA characteristics

  • Non-deterministic: multiple possible transitions

  • Flexible: can handle complex patterns

  • Backtracking: may need to explore multiple paths


12
New cards

NFA

non-deterministic finite automation.

  • multiple transitions: from a state, can go to multiple states on same input

  • e-transitions: can move to another state without consuming input

  • non-deterministic: multiple possible paths for same input