1 / 6

BAĞLAMA DUYARLI GRAMERLER

BAĞLAMA DUYARLI GRAMERLER. Yılmaz Kılıçaslan. Sunum Planı. Bir sayı dizisi Bağlama duyarlı gramerlerin bileşenleri Örnekler. Bir Sayı Dizisi. 1 3 7 12 18 26 35 45 56 69 8 3 98 114 131. Bağlama Duyarlı Gramerlerin Tanımı.

arty
Download Presentation

BAĞLAMA DUYARLI GRAMERLER

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BAĞLAMA DUYARLI GRAMERLER Yılmaz Kılıçaslan

  2. Sunum Planı Bir sayı dizisi Bağlama duyarlı gramerlerin bileşenleri Örnekler

  3. Bir Sayı Dizisi 1 3 7 12 18 26 35 45 56 69 8 3 98 114 131 ...

  4. Bağlama Duyarlı Gramerlerin Tanımı • Bir bağlama duyalı gramer şu 4 bileşenden oluşur: • N: Sonlu bir terminal olmayan semboller kümesi. • S ϵ N: Başlangıç sembolü. • T: Terminal semboller kümesi. • P: Şu kural şemalarından birine uyan üretim kuralları: • i. α β, α ve βϵ (N ∪T)+ • |α| ≤ |β| ve α en az bir değişken içermelidir. • ii. S  ε • ya da • αAβ αγβ, α, βϵ(N ∪ T)* ve γϵ (N ∪ T)+

  5. Örnek P: 1. S  aSBC 2. S  aBC 3. CB  BC 4. aB ab 5. bB  bb 6. bC  bc 7. cC  cc P: 1. S  aSBC 2. S  aBC 3. CB  HB 4. HB  HC 5. HC  BC 6. aB ab 7. bB  bb 8. bC  bc 9. cC  cc • L = {anbncn} | n > 0} • G = < N, T, S, P> • N = {S, A, B, C} • T = {a, b, c} veya P: 1. S  aSBc 2. S  abc 3. cB  Bc 4. bB  bb veya

  6. Kaynak • Hopcroft, J.E. and Ullman J.D. (1979). Introduction to Automata Theory, Languages, and Computation (1st ed.). Addison-Wesley.

More Related