Pumpamisfunktsiooni
Pumpamisfunktsiooni, also known as the pumping lemma for context-free languages, is a fundamental theorem in the theory of computation. It provides a way to prove that a given language is not context-free. The lemma states that for any context-free language L, there exists a constant p (the pumping length) such that any string s in L with length at least p can be divided into five substrings, s = uvwxy, satisfying specific conditions. These conditions ensure that parts of the string can be "pumped" or repeated, resulting in new strings that must also be in L.
The crucial conditions are: 1. The substring vw must not be empty. 2. The substring vx must
To use the pumping lemma to show a language is not context-free, one assumes it is context-free