1.1 MATHEMATICAL PRELIMINARIES AND NOTATION

Sets

A set is a collection of elements, without any structure other than membership. To indicate that x is an element of the set S, we write xS. The statement that x is not in S is written xS. A set can be specified by enclosing some description of its elements in curly braces; for example, the set of integers 0, 1, 2 is shown as

S={ 0,1,2 }.

Ellipses are used whenever the meaning is clear. Thus, {a, b, …, z} stands for all the lowercase letters of the English alphabet, while {2,4,6, …} denotes the set of all positive even integers. When the need arises, we use more explicit notation, in which we write

S={ i:i>0,i is even } (1.1)

for the last example. We read this as “S is the set of all ...

Get An Introduction to Formal Languages and Automata, 7th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.