4.4.2 - ToC (Regular Expressions) Flashcards

(4 cards)

1
Q

What are the 5 main metacharacters and what are there description

A

1- * (0 or more repetitions)
2- + (1 or more repetitions)
3- ? (0 or 1 repetitions, ie optional)
4- | (alternation, ie or)
5- ( ) to group regular expressions.

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

Regular expressions and FSMs are equivalent
ways of defining a regular language. (True False)

A

True

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

What is a regular language

A

Any language that an FSM will accept or that can be represented as a regular expression

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

What is meant by a regualar language

A

Any formal language that comprises of a set of strings, determined by an alphabet, that an FSM will accept

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