SUNY Geneseo, Department of Computer Science


The Pumping Lemma, Part 3

CSci 342, Fall 2001

Prof. Doug Baldwin

{Return to List of Lectures}

Previous Lecture


Misc

Test One a week from today (10/5)

Questions?

Pumping Examples

Prove that the language consisting of all strings of the form x+y=z, where x, y, and z are decimal representations of integers and the sum of the integers represented by x and y equals the integer represented by z, is not regular.

General intent: Start with a string in L, after pumping result is not in L

Pumping lemma to prove that L is regular?

Show that the set of all strings over {a,b} in which the number of a's is greater than the number of b's is not regular

Next

Since there exist languages that aren't regular, apparently including interesting and useful languages like HTML, are there ways of describing languages that can handle those languages, and models of computation that can recognize them?

Read Chapter 2 intro and Section 2.1 up to but not including "Chomsky Normal Form" on page 98.

Mini-Assignment: Design a context-free grammar for the language of properly nested and closed <table> and </table> tags. (You need not include any text between the tags, or any other tags.)


Next Lecture