

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
final soruları çözümlü halidir
Typology: Study Guides, Projects, Research
1 / 3
This page cannot be seen from the preview
Don't miss anything!
Öğrenci No:
Prof. Dr. A. Emre HARMANCI 13 Ocak 2012 Yard. Doç. Dr. Osman Kaan EROL Süre:120 dakika Öğr. Gör. Dr. Berk CANBERK Araş. Gör. Mustafa ERSEN Araş. Gör. Gökhan SEÇİNTİ
SORU 1)(30 puan) alfabesinden oluşan ve son üç karakteri bab ile biten sözcükleri tanıyan sonlu durumlu bir otomat tasarlanacaktır.
a) Bu otomata ait dilin düzenli ifadesini bulun. b) Otomatın determinist olmayan haline ilişkin bir diyagramını oluşturun. (sezgisel yöntem kullanılabilir.) c) Otomatın determinist eşdeğerini oluşturun. d) (Bonus Sorusu: 20 puan) Determinist otomattan sistematik yolla bir düzenli ifade oluşturun.
Yanıt:
a) L(M) = (a V b)*bab b)
c)
s = E(q 0 ) = q 0 p 0 δ(p 0 ,a) = δ(q 0 ,a) = { q 0 } = p 0 δ(p 0 ,b) = δ(q 0 ,b) = { q 0 ,q 1 } = p 1 δ(p 1 ,a) = δ({q 0 ,q 1 },a) = { q 0 ,q 2 } = p 2 δ(p 1 ,b) = δ({q 0 ,q 1 },b) = { q 0 ,q 1 } = p 1 δ(p 2 ,a) = δ({ q 0 ,q 2 },a) = { q 0 } = p 0 δ(p 2 ,b) = δ({ q 0 ,q 2 },b) = { q 0 ,q 1 ,q 3 } = p 3 δ(p 3 ,a) = δ({ q 0 ,q 1 ,q 3 }, a) = { q 0 ,q 2 } = p 2 δ(p 3 ,b) = δ({ q 0 ,q 1 ,q 3 }, b) = { q 0 ,q 1 } = p 1
d) L(M) = p 3 p 3 = p 2 b p 2 = p 3 a V p 1 a p 1 = p 3 b V p 1 b V p 0 b p 0 = p 2 a V p 0 a V Λ
p 2 = p 2 ba V p 1 a = p 1 a(ba)* p 1 = p 2 bb V p 1 b V p 0 b p 1 = p 1 (a (ba)*bb V b) V p 0 b
p 1 = p 0 b(a (ba)bb V b) p 0 = p 0 (b (a (ba)bb V b)a(ba)a V a )V Λ p 0 = (b (a (ba)bb V b)a(ba)a V a )* p 3 = p 2 b = p 1 a(ba)b p 3 = p 0 b(a (ba)bb V b)* a(ba)b L(M) = (b(a(ba)bb Vb)a(ba)a Va )* b(a(ba)bb V b) a(ba)*b
Öğrenci No:
SORU 2)(35 puan) şeklindeki sözcükleri tanıyan bir yığın yapılı otomat tasarlanacaktır.
a) Bu otomata ilişkin bağıntı kümesini bulun. b) Bu otomata ilişkin dilin gramer kurallarını belirleyin. c) ab aaabbb aabb aaaabbb sözcüğüne ilişkin türetim ağacını çizin.
Yanıt:
a)
b) c)