CMSCI 485: Theory of Computation

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/34

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

35 Terms

1
New cards

Set

a collection of non-repeatable elements, without any structure other than membership.

2
New cards

(Union of sets)

a set that contains all the values in both sets.

3
New cards

(Intersection of sets)

a set that contains all the elements that are common to both sets

4
New cards

— (Difference of sets)

a set containing all the elements that are in one set but not the other

5
New cards

Complement (S’)

a set that contains all possible elements not in S

6
New cards

Cartesian Product (X)

a collection of ordered pairs produced by both sets

7
New cards

Proper Subset (S1 S)

where there exist an element in S that is not in S1

8
New cards

Disjoint

where both sets have no common element

9
New cards

Powerset (2s)

The set of all subsets of a set S, including empty

10
New cards

Alphabet (∑)

a finite set of “symbols”

11
New cards

String

finite sequence of elements from the alphabet

12
New cards

Languages

set of strings from the alphabet

13
New cards

L*

0 or more copies from L concatenated together

14
New cards

L+

1 or more copies from L concatenated together

15
New cards

Automaton

Procceses input string and changes states according to a set of configured rules

16
New cards

Deterministic Finite Automata

A finite state machine where each state has exactly one transition for every input symbol.

17
New cards

Non-deterministic Finite Automata

A finite state machine where each state has more than one possible transition from one state on the same input symbol.

18
New cards

Regular Language

A language that is recognized by a finite automaton (D/N) (L=L(M)), Regex, and (Right/Left) Grammar, and Operations

19
New cards

Grammar Rules

Variables, Terminals, Start Symbols, Production Rules

20
New cards

Defining DFA

M = {Q, Σ, δ, qo, F}

21
New cards

Q

number of finite states

22
New cards

Σ

Alphabet

23
New cards

δ

Transition Function

24
New cards

qo

Start State

25
New cards

F

Final State

26
New cards

Right-Linear Grammar

Where the non-terminals are right of the string of terminals

27
New cards

Left-Linear Grammar

Where the non-terminals are left of the string of terminals

28
New cards

Closure

an operation on elements in a set that gives you another element in the set

29
New cards

Homomorphism

function that takes a letter and transforms it into another letter

30
New cards

Ways to show a Language is Regular

  1. DFA

  2. NFA

  3. Regex

  4. Right/Left-Linear Grammar

  5. Operations (Concatenate, Union, etc)

31
New cards

Context-Free Grammar

is a formal system used to describe all strings in a language using a set of rules that follows:

S → aS|λ

32
New cards

Ambiguous Grammar

if there exists a string w such that w has two or more distinct parse trees or derivations

33
New cards

Parsing

the process of deriving a string from a grammar

34
New cards

Brute-force Parsing

Trying and seeing all combinations of concatenated grammar, which might get stuck in a loop.

35
New cards

S-Grammar (Simple Grammar)

Where the non-terminals gives us one choice on what to choose