
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
In this short exam, you will be required to identify the chomsky grammar type for each given grammar rule and provide an example word for it. The grammar rules do not necessarily have a regular expression or a clear sentence structure. The following are the grammar rules and their corresponding types and reasons.
What you will learn
Typology: Study Guides, Projects, Research
1 / 1
This page cannot be seen from the preview
Don't miss anything!
Aşağıda verilen gramerlerin Chomsky sınıflandırmasına göre hangi tipe ait olduklarını ve neden bu
tipe ait olduklarını belirterek, her biri için en az 4 karakterden oluşan bir örnek sözcük türetiniz. Bu
gramerlerin düzenli ifadelerini veriniz(Eğer düzenli ifadesi yoksa dilin özelliğini açıklayınız).
Gramer Tipi ve Nedeni Örnek türetim Düzenli ifadesi(yoksa dilin özelliği) S aAb | acb aA aaAb | ac (^) Tip 1: solda birden fazla
simge var ve sol tarafın uzunluğu sağ tarafı aşmıyor.
S aAb aaAbb aacbb
Tip 3 olmadığı için düzenli ifadesi yok. Bu dilden türetilen sözcükler formundadır.
::= aa | bb | c
Tip 2: Sol yan terminal olmayan tek simge, sağda bir ya da daha fazla sayıda simge var.
S aSa abSba abcba
Tip 3 olmadığı için düzenli ifadesi yok. Bu dilden türetilen sözcükler formundadır.
S abA | abB | b A aA | a B bB | c
Tip 3: Sol yan terminal olmayan tek simge ve en sağdan tek bir terminal olmayan simge ile türetiliyor.
S abB abbB abbc
::= aa | bb | c aa ::= ac Tip 0:^ solda birden fazla simge var ve ikinci kuralda sol tarafın uzunluğu sağ tarafınkini aşmış.
S aSa aaSaa aaca
Tip 3 olmadığı için düzenli ifadesi yok. Bu dilden türetilen sözcükler
formundadır.
Süre: 20 dakika