CSCD 420 Oct 08 2026
Overview
The lecture develops the pumping lemma as a contradiction method for proving that a language is not regular: assume a DFA with m states exists, choose a suitable string of length at least m, and show that every legal decomposition XYZ can be pumped or shortened to leave the language. Examples include even-length palindromes, strings with more B's than A's, and strings of the form (ab)^n a^k where n > k; course logistics also clarify that the upcoming exam excludes pumping-lemma material.
Key takeaways
- For an m-state DFA, any accepted string of length at least m forces a repeated state, yielding a nonempty cycle segment Y in a decomposition XYZ.
- A nonregularity proof must handle every legal split with |XY| ≤ m and |Y| ≥ 1, not merely demonstrate that one particular split fails.
- For even-length palindromes, a^m b^m b^m a^m forces Y into the initial A-block; pumping Y adds unmatched A's and destroys the palindrome.
- For strings with more B's than A's, a^m b^(m+1) is an effective boundary string because pumping an A-only prefix immediately removes the required B surplus.
- When pumping upward is inconvenient, pumping downward with i = 0 can expose violations; for (ab)^n a^k with n > k, deletion may break alternation or eliminate the strict inequality.
- Upcoming exam coverage stops at regular grammars and excludes pumping-lemma material, while the assessment favors applied problem solving over definition recall.
Chapters
- The quarter's homework file is available, and students may work ahead because lecture coverage has historically preceded related assignments.
- The next assignment is due Wednesday; a study guide is expected the following day for an exam one week later.
- The exam covers material through regular grammars and excludes the pumping lemma; questions will emphasize concept explanations and problem solving over memorization.
- Feedback on Homework 1 may be delayed because of illness and office relocation after first-floor flood damage; corrections or resubmissions may be considered to prevent one issue carrying into multiple assignments.
- To prove a language is not regular, assume an accepting DFA with m states exists and examine a string in the language with at least m characters.
- The DFA must revisit a state, creating a cycle; split the accepting path into X before the cycle, Y for one traversal, and Z after it.
- Because the cycle can be traversed repeatedly, XY^iZ must remain accepted for any nonnegative pumping count i if the DFA recognizes the language.
- A DFA cycle consumes at least one input character, so Y cannot be empty.
- Player One chooses m, the number of states in a hypothetical accepting DFA; the proof must work for every possible m.
- Player Two chooses a language member W of length at least m, then Player One chooses XYZ subject to |XY| ≤ m and |Y| ≥ 1.
- Player Two wins by finding a pumping count i that makes XY^iZ fall outside the language for every legal decomposition.
- A single failed choice of W or i does not establish regularity; the argument must give Player Two a successful response for all of Player One's choices.
- For the language {ww^R}, choose W = a^m b^m b^m a^m, an even-length palindrome that must be accepted if the language is regular.
- The first m characters are all A's, ensuring the cycle required by an m-state DFA occurs entirely within that A-block.
- The choice of a uniform A-prefix restricts every legal X and Y to A's, making it possible to predict how pumping changes the string.
- The string scales with the hypothetical DFA size: if m = 17, the construction begins with 17 A's and still belongs to the palindrome language.
- Since |XY| ≤ m and |Y| ≥ 1, Y consists of at least one A from the initial block and contains no B's.
- Set i = 2 to add one extra copy of Y while leaving the trailing blocks unchanged, producing a^m+|Y| b^m b^m a^m.
- The added A's have no matching additions in the mirrored final A-block, so the pumped string is no longer an even-length palindrome.
- For the illustrative case m = 3 and Y = aaa, pumping once more yields six initial A's while the remaining blocks retain their original lengths.
- A strong pumping-lemma string narrows the legal decompositions: here, every possible Y contains only A's.
- For a regular language, pumping a valid DFA cycle continues to produce strings in the language, so the final contradiction step cannot succeed.
- The method applies to many assigned nonregular-language proofs, but success depends on choosing a string that exposes the language's structural constraint.
- Not every nonregular language has an easy pumping-lemma proof; some require more unusual arguments.
- For strings over {a,b} with more B's than A's, choose a^m b^(m+1), placing the string just one B inside the language's boundary.
- Putting all A's first ensures that any legal Y within the first m characters consists only of A's.
- Pumping Y once adds at least one A without adding any B, so the resulting string has at least as many A's as B's and is outside the language.
- A choice such as a^m b^(2m) could also work, but it may require pumping many times; the boundary choice makes the contradiction immediate.
- For L = {(ab)^n a^k : n > k ≥ 0}, choose (ab)^(m+1) a^m, where n exceeds k by only one.
- The cycle must occur within the first m characters, inside the alternating (ab) portion, so removing Y with i = 0 is the useful strategy.
- The string is deliberately near the condition n > k boundary, meaning a small deletion can eliminate the strict inequality.
- Unlike the earlier examples, Y may contain both A's and B's, so its possible forms need further case analysis.
- Classify Y by its first and last characters: it can start and end with A, start with A and end with B, start with B and end with A, or start and end with B.
- If Y is a single A, deleting it creates consecutive B's, which strings in (ab)^n a^k do not permit.
- For longer deletions, the cases either break the alternating pattern or remove enough AB pairs that n is no longer strictly greater than k.
- Case analysis must cover every legal Y; office hours were offered immediately and from 1 to 2, with the topic continuing the next day.
Transcript excerpt
0:02 How do we get started? Because you have access to a file now that has all of the homeworks for the quarter. That's something that you can use if you'd like to work ahead. Historically, I've covered content just a little bit faster than the homeworks that cover that material. So that does give you the opportunity to start homeworks a little bit early if that works well with your schedule, your other everything else you have going on. So we had an assignment that was due last night. The next assignment is officially assigned and will be due next Wednesday. But as mentioned, you can start working on that anytime. You can also start working on the next after that if you
0:49 would like as we start covering that material. I will get you a study guide by tomorrow for an exam a week from tomorrow and that will only cover material up through regular grammarss. So none of the pumping lema material that we are going over right now will be on the exam. That's to ensure that you have an assignment for it that you've submitted and hopefully you will at least have some feedback on that by the time you take the exam. Questions or concerns on scheduling matters? >> Aka got a fever a day or two ago and he also has to pick up and move his office.
1:39 because of the so you know the the flood that happened down on the first floor. His office was affected by that and they gave us about a two-day window to pick up our stuff and move to alternate offices. My office was not affected but his was. So he's juggling being sick and needing to move all of his stuff before they start tearing down and doing
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Chris Cain.