example 1 73 i
play

Example 1.73 I Lets apply pumping lemma to prove that B = { 0 n 1 n - PowerPoint PPT Presentation

Example 1.73 I Lets apply pumping lemma to prove that B = { 0 n 1 n | n 0 } is not regular Assume B is regular. From the lemma there is p such that s in the language with | s | p some properties hold September 23, 2020 1 / 9


  1. Example 1.73 I Let’s apply pumping lemma to prove that B = { 0 n 1 n | n ≥ 0 } is not regular Assume B is regular. From the lemma there is p such that ∀ s in the language with | s | ≥ p some properties hold September 23, 2020 1 / 9

  2. Example 1.73 II Now consider a particular s in the language s = 0 p 1 p We see that | s | ≥ p . By the lemma, s can be split to s = xyz such that xy i z ∈ B , ∀ i ≥ 0 , | y | > 0 , and | xy | ≤ p However, we will show that this is not possible September 23, 2020 2 / 9

  3. Example 1.73 III If 1 y = 0 · · · 0 then xy = 0 · · · 0 and z = 0 · · · 01 · · · 1 Thus xyyz : #0 > #1 Then xy 2 z / ∈ B , a contradiction September 23, 2020 3 / 9

  4. Example 1.73 IV If 2 y = 1 · · · 1 , similarly xy 2 z / ∈ B as #0 < #1 If 3 y = 0 · · · 01 · · · 1 then ∈ B as it is not in the form of 0 ? 1 ? xyyz / September 23, 2020 4 / 9

  5. Example 1.73 V Therefore, we fail to find xyz with | y | > 0 such that xy i z ∈ B , ∀ i ≥ 0 Thus we get a contradiction We see that the condition | xy | ≤ p is not used, but we already reach the contradiction For subsequent examples we will see that this condition is used September 23, 2020 5 / 9

  6. Example 1.39 I C = { w | #0 = #1 } We follow the previous example to have s = 0 p 1 p = xyz However, we cannot get the needed contradiction for the case of y = 0 · · · 01 · · · 1 September 23, 2020 6 / 9

  7. Example 1.39 II Earlier we said xyyz not in the form of 0 ? 1 ? but now we only require #0 = #1 It is posible that x = ǫ, z = ǫ, y = 0 p 1 p and then | y | > 0 and xy i z ∈ C , ∀ i September 23, 2020 7 / 9

  8. Example 1.39 III The 3rd condition should be applied | xy | ≤ p ⇒ y = 0 · · · 0 in s = 0 p 1 p Then xyyz / ∈ C Question: the pumping lemma says ∀ s ∈ A , · · · but why in the examples we analyzed a particular s ? September 23, 2020 8 / 9

  9. Example 1.39 IV And it seems that the selection of s is important. Why? We will explain our use of the lemma in more detail September 23, 2020 9 / 9

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend