




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































1
3
7
9
13
15
19
Regular Expressions
Set notation
{a}∪{b} a+b
{a}{bb,/} = {a}({bb}∪{/}) a*(bb+/)
{bb}{a,b}* = {bb}({a}∪{b})* bb(a+b)*
{a,b}* = ({a}∪{b})* (a+b)*
{aa,b} = {aa}∪{b} aa+b
{aab} aab
21
25
27
31
33
37
int main(int A[], int n) { int i, max;
if (n < 1) return (“Illegal Input”); max = A[0]; for (i = 1; i < n; i++) if (A[i] > max) max = A[i]; return (max); }
39