Automata Flashcards

1
Q

Formal language

A

i. Strict rules govern the structure and arrangement of symbols and words in formal languages
ii. Every expression OR statement in a formal language has a clear and unambiguous meaning
iii. Formal languages often have a set of rules and grammar that define the valid combinations of symbols and how they can be manipulated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

De-morgan’s Law

A

De-morgan’s Law is a pair of fundamental rules in boolean algebras. These laws describe the relationships between logical AND, OR, and NOT operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

First Law (De Morgan’s Theorem for AND ):

A

i. The negation of conjunction (AND) is equivalent to the disjunction (OR) of the negations of the individual statement.
¬(A∧B)=(¬A)∨(¬B)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Second Law (De Morgan’s Theorem for OR)

A

i. The negation of a disjunction (OR) is equivalent to the conjunction (AND) of the negations of the individual statements
ii. ¬(A∨B)=(¬A)∧(¬B)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Grammar

A

A grammar in automata refers to a set of rules specifying how strings of symbols can be constructed in a formal language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Deterministic finite automata

A

A deterministic finite automaton (DFA) is a finite state machine that recognizes or accepts a set of strings over an alphabet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Non-deterministic Finite Automata

A

A Non-deterministic Finite Automaton (NFA) is a finite state machine that recognizes or accepts a set of strings over an alphabet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Equivalence of NFA and DFAs

A

Every language that can be recognized by a non-deterministic finite automaton (NFA) can also be recognized by a deterministic finite automaton (DFA), and vice versa.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

subset construction

A

Given any NFA, there exists an equivalent DFA that recognizes the same language. This process is known as the subset construction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Concatenation closure

A

The class of regular languages is closed under the concatenation operation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Kleene’s Star Closure

A

The class of regular languages is closed under the Kleene star operation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

pumping lemma for regular languages

A

For any regular language L, there exists a constant p (the “pumping length”) such that any string s in L with length at least p can be split into three parts, xyz, satisfying certain conditions. This lemma is used to prove that certain languages are not regular.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Regular Expression

A

i. Basic Symbols
ii. Concatenation ( Concat )
iii. Union
iv. Kleen Star
v. alphabets
vi. parentheses
vii. wildcard (dot)
viii. Character classes
ix. Escape
x. Anchors ( ^ and $)
xi. Quantifiers
xii. Escape Sequence
xiii. Regular Expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

properties of regular languages

A

i. Regular languages satisfy the pumping lemma, which provides a condition for proving that a language is not regular
ii. The membership problem for regular languages (deciding whether a given string is in the language ) is decidable
iiI. Regular Language can be recognized by both deterministic finite automata (DFA) and non-deterministic finite automata (NFA) with equivalent expressive power
iii. Every regular language can represented by a regular expression, demonstrating their expressive power

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Pigeonhole Principle

A

The pigeonhole principle states that if you want to distribute n items into m containers and n > m, then at least one container must contain more than one item.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

nullable in automata

A

A non-terminal symbol in a grammar is said to be “nullable” and refers to whether a non-terminal symbol in a grammar can derive the empty string (or epsilon )

17
Q

two important normal forms

A

i. Chomsky normal form
ii. Greibach Normal Form (GNF)
iii. Backus-Naur Form ( BNF)

18
Q

Chomsky Normal Form

A

In Chomsky’s normal form, every production rule in context-free grammar is of the form A–> BC or A–>a, where A, B, and C are non-terminals, and ‘a’ is a terminal.

19
Q

Greibach Normal Form

A

In Griebach Normal Form, every production rule in a context-free grammar is of the form A–> a(gamma), where A is a non-terminal, ‘a’ is a terminal, and gamma is a strong of non-terminals.

20
Q

Backus-Naur Form

A

Backus-Naur Form is not a “normal form” in the traditional sense, but it’s a widely used notation for expressing context-free grammars, often used to define the syntax of programming languages.