Ask Your Question
0

Regularny vyraz - AAG

asked 2015-11-20 20:42:07 +0100

gandalf gravatar image

updated 2015-11-20 20:43:55 +0100

Zdravim, chcel by som sa spytat na upravu jednej rovnice, ktorou si nie som uplne isty. Riesim prevod z KA na RV metodou odchadzajucich prechodov.

Takto je popisany automat

q0 = aq1
q1 = bq0 + cq1 + eps

q1 = cq1 + baq1 + eps
q1 = (c+ba)q1 + eps
uprava -> q1 = (c+ba)* + eps

Vysledok

q0 = a(c+ba)* + eps

Neviem, ci v tom upravenom a aj vysledku ma byt aj epsilon alebo nie, z poznamok z prednasky tam ten epsilon nemam, no podla mna by tam byt mal. Hoci na druhej strane, ked tam pridam epsilon do vysledku, budem vediet vygenerovat samotny epsilon, a to povodny automat nevedel, vzdy tam muselo byt minimalne acko jedno. Dakujem.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
2

answered 2015-11-21 19:51:09 +0100

MichalH gravatar image

updated 2015-11-21 19:51:47 +0100

Tu pravou regularni rovnici mas vyresenou spatne, ma tam byt:

q1 = (c+ba)q1 + eps

q1 = (c+ba)*eps = (c+ba)*

Pak to vyjde.

edit flag offensive delete publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

Add answer

[hide preview]

Question tools

Follow
1 follower

Stats

Asked: 2015-11-20 20:42:07 +0100

Seen: 144 times

Last updated: Nov 21 '15