Important Terms

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

1/47

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

48 Terms

1
New cards

Length

This attribute of a string Ω is spelled as |Ω| and is equal to the number of symbols in a string.

2
New cards

Substring

This z of a string Ω is a string z which appears inside Ω.

3
New cards

Reverse

A string written in the opposite order of a string Ω.

4
New cards

Lexicographical Order

An order of strings as it would appear in a dictionary.

5
New cards

Prefix

This x of a string y exists if there is a string z such that xz = y.

6
New cards

Proper Prefix

This x is defined as x ≠ y, i.e. |z| ≠ 0.

7
New cards

Language

A set of strings over some alphabet ∑(A, B, C, L).

8
New cards

Alphabet

A nonempty finite set of characters (∑ = {a, b, c})

9
New cards

String

A finite sequence of characters.

10
New cards

Prefix-Free Language

Language where no member is a proper prefix of another member.

11
New cards

Function

An object that sets up a deterministic input-output relationship.

12
New cards

DFA Formal Definition

A DFA is a 5-Tuple (Q, ∑, q0, T, ∂) where:

  • Q is a finite set of states.

  • ∑ is an alphabet of input symbols.

  • q0 is the start state.

  • T is a subset of Q giving the accept states.

  • ∂ is the transition function mathematically defined as ∂: Q x ∑ → Q that maps a state and symbol to a state.

13
New cards

NFA Formal Definition

An NFA is a 5-Tuple (Q, ∑, q0, T, ∂) where:

  • Q is a finite set of states.

  • ∑ is an alphabet of input symbols.

  • q0 is the start state.

  • T is a subset of Q giving the accept states.

  • ∂ is the transition function mathematically defined as ∂: Q x ∑ → 2Q that maps a state and symbol to a power set of states.

14
New cards

GFA (Generalized Finite Automaton)

An FA that consists of:

  • One accept state.

  • No transitions into the start state.

  • No transitions outside of the accept state.

15
New cards

Indistinguishable

Two strings x and y are indistinguishable with respect to language L if for every string z, it holds xz ∈ L iff yz ∈ L.

16
New cards

Pumping Lemma (Regular)

If language L is regular, then there exists some DFA D with k states that accepts L. Additionally, for every Ω ∈ L:

  • |Ω| >= k

  • Ω = xyz

  • y ∉ ε

  • |xy| <= k

  • xyiz ∈ L for all i >= 0

17
New cards

PDA Formal Definition

A PDA is a 6-Tuple (Q, ∑, Γ, ∂, q0, F) where:

  • Q is a finite set of states.

  • ∑ is the finite input alphabet.

  • Γ is the finite stack alphabet.

  • ∂ is the transition function that maps a state and symbol to an action.

  • q0 is the start state.

  • F is the set of accept states.

18
New cards

CFG Formal Definition

A CFG is a 4-Tuple (V, ∑, S, P) where:

  • V is a finite set of variables.

  • ∑ is a finite alphabet of terminals.

  • S is the start variable.

  • P is the finite set of productions where each production has the form V → (V U ∑)*

19
New cards

Ambiguous Grammar

A grammar that can be represented by more than 1 derivation tree.

20
New cards

Unambiguous Grammar

A grammar that can be represented by only 1 derivation tree.

21
New cards

Usable Variable

A variable that produces some string of terminals.

22
New cards

Nullable Variable

A variable that can generate ε.

23
New cards

Chomsky Normal Form

A variation of a CFG where every variable can derive exactly 2 variables and/or exactly 1 terminal, but nothing else.

24
New cards

Pumping Lemma (Context-Free)

If language A is context-free, then there exists a constant k such that for every string Ω ∈ A of length at least k, you can split Ω into uvxyz where:

  • vy is not empty

  • |vxy| <= k

  • uvixyiz ∈ A for all i >= 0

25
New cards

TM Formal Definition

A TM is a 7-tuple (Q, ∑, Γ, q0, ha, hr, ∂) where:

  • Q is a set of states.

  • ∑ denotes the input alphabet.

  • Γ denotes the tape alphabet.

  • q0 is the start state.

  • ha denotes the unique accept state

  • hr denotes the unique reject state

  • ∂ is the transition function Q x Γ → Q x Γ x {L, R, S} that maps a state and tape letter to a state, tape letter, and head direction.

26
New cards

Transducer

An always-accepting TM that performs an operation on a string.

27
New cards

UTM

A TM that takes another TM as input and processes it.

28
New cards

Decidable Language

A language where it is possible to create a decider for it.

29
New cards

Decider

A TM that accepts all strings that are in a language and rejects all strings that are not in the language.

30
New cards

Turing-Recognizer

A TM that accepts all strings that are in a language and rejects or loops on all strings that are not in the language.

31
New cards

T-Recognizable Language

A language where it is possible to create a T-recognizer for it.

32
New cards

Undecidable Language

A language where it is impossible to create a decider for it.

33
New cards

Unrecognizable Language

A language where it is impossible to create a T-recognizer for it.

34
New cards

Enumerator

A TM where given an empty input tape, it can print out all of the strings in a language.

35
New cards

Enumerable Language

A language where it is possible to create an enumerator for it.

36
New cards

ATM

{<M, w> | M accepts w} - Undecidable

37
New cards

HALTTM

{<M, w> | M halts on w} - Undecidable

38
New cards

ETM

{<M> | M is a TM and L(M) = ø} - Undecidable

39
New cards

EQTM

{<M1, M2> | L(M1) = L(M2)} - Undecidable

40
New cards

Reducibility

Language A reduces to language B (A <= mB) if there exists a computable function f (f: ∑* → ∑*), such that for every x, x ∈ A iff f(x) ∈ B.

41
New cards

P

The set of all problems that are decided by a DTM in polynomial time.

42
New cards

NP

The set of all problems that are decided by a NTM in polynomial time | The set of all problems that a DTM can verify a solution (certificate) of in polynomial time.

43
New cards

NP-Complete

The set of all languages/problems in NP that are all reducible to each other.

44
New cards

Computable Function

A function that produces an output, always works, always halts, and never loops.

45
New cards

CLIQUE

{<G, k> | G - graph that contains k-clique}

46
New cards

SAT

{<ϕ> | ϕ is a boolean formula satisfiable}

47
New cards

SUBSET-SUM

{<s, t> | s - set of positive integers with subset, with sum t}

48
New cards

PARTITION

{<s> | s - set of positive integers with subset sum of ∑s / 2}

Explore top flashcards

U10 B
Updated 620d ago
flashcards Flashcards (20)
UNIT 2 (prep)
Updated 4d ago
flashcards Flashcards (24)
Polyfarmacie
Updated 365d ago
flashcards Flashcards (20)
tiếng anh 5 - B1
Updated 976d ago
flashcards Flashcards (23)
U10 B
Updated 620d ago
flashcards Flashcards (20)
UNIT 2 (prep)
Updated 4d ago
flashcards Flashcards (24)
Polyfarmacie
Updated 365d ago
flashcards Flashcards (20)
tiếng anh 5 - B1
Updated 976d ago
flashcards Flashcards (23)