Skip to content
GATEiit

GATE CSE 2019 Q25: Pumping length for L = {a^(2+3k)} ∪ {b^(10+12k)}

Syllabus topic: Regular and context-free languages; pumping lemma

Question

For Σ={a,b}, let us consider the regular language L={x∣x=a2+3k or x=b10+12k,k≥0}. Which one of the following can be a pumping length (the constant guaranteed by the pumping lemma) for L?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: D (official GATE 2019 final answer key)

Concept used: A number p is a valid pumping length only if every string of length at least p in L can be pumped. b10 can never be pumped (pumping down leaves fewer than 10 b's), and a b-string stays in L only if it is pumped by a block of 12 b's, so p must be large enough to allow that.

Concept notes

Loading notes…

First step: For each candidate p, look for a string in L of length at least p that cannot be pumped: b10 rules out every p≤10, and any pumped b-string must change length by a multiple of 12.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Regular and context-free languages; pumping lemma

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2019 CS question paper and final answer key, organised by IIT Madras. Question paper · Answer key