Week 1 Flashcards
The alphabet?
(Σ) which is a set of characters such as {a,b,c}
Σ*
the set of all words
Language
is a set of words which is subset of Σ*
The regexp a matches only the word?
a
The regexp ε matches only ?
The empty word ε
The regexp 0 matches ?
none
the regexp EF matches?
(a word matches by E) + (a word matches by F)
the regexp E|F matches?
(a word match by E) or (a word matches by F)
the regexp E* matches?
0 or more
The precedence rule of regexp?
1- * + ?
2- juxtaposition
3- |
the regexp E+ ?
EE* , one or more
E?
ε | E, zero or one
Regular language?
Language that can be represented by a regular expression
decision problem?
is a problem that, for any given argument, has a Yes/No answer
Decidable decision problem?
when there is some program that, given an argument, says whether the answer is Yes or NO