Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Syntax and Semantics
[go: Go Back, main page]


Syntax and Semantics

Lecture 3


Syntax and Semantics

Topics

Regular expressions are a notation for describing regular languages which appear over and over again in Computer Science. Variants on regular expressions are, for instance, used in text editors like Emacs and in UNIX.

In our previous lecture, we have seen how adding nondeterminism to the model of finite automata did not yield a more powerful model of computation. In particular, we saw that there is an algorithm that allows us to convert any nondeterministic automaton into an equivalent deterministic one.

In this lecture we shall see that regular expressions are also equivalent to finite automata, and that there are algorithmic conversions between these two formalisms. To this end, we shall first show how to convert a regular expression R into an NFA that recognizes the language denoted by R. Next, we shall show how, given a DFA M, we can build a regular expression describing the language L(M). As a tool in this conversion, we shall employ Generalized NFAs, which are just NFAs whose transitions may be labelled by arbitrary regular expressions. Both these conversions are achieved by means of algorithms, which you may find implemented in the DAT2 project developed last year by some of your colleagues.

Time and Location

Friday, 26 November 2004 at 9:00 in room 303.

Reading Material

Exercises


Luca Aceto, Institute of Computer Science, Aalborg University.
Last modified: Monday, 22-Nov-2004 17:20:13 CET.