Ask your own question, for FREE!
Mathematics 8 Online
OpenStudy (anonymous):

Write five strings that belong to the language defined by the regular expression: (x|y)y(x|y)*.

OpenStudy (anonymous):

@experimentX can u help me?

OpenStudy (experimentx):

5 strings ... lol with x or y ..and y .. and x or y??

OpenStudy (anonymous):

i guessss

OpenStudy (experimentx):

not found for xyx* http://www.online-dictionary-free.com/words-xy.asp

OpenStudy (experimentx):

(x/y) means x or y right??

OpenStudy (anonymous):

| this means the union i think

OpenStudy (anonymous):

so yes r*=kleen closure and |=or

OpenStudy (experimentx):

union?? so how should the word be xyx* yyy* isn't it something like that??

OpenStudy (anonymous):

nooo its not union its or sorry i messed up

OpenStudy (experimentx):

how should the word be?? i mean starting??

OpenStudy (experimentx):

http://regexr.com?31bej

OpenStudy (anonymous):

idk i dont get it myself

OpenStudy (anonymous):

xyxxx or xyyyyy or yyxxx or yyyyy

OpenStudy (anonymous):

that is if by | you mean or

OpenStudy (anonymous):

yes i do. Can u explain how u got that answer

OpenStudy (experimentx):

shouldn't it " belong to the language" ??

OpenStudy (anonymous):

so (x|y)y(x|y)* (x|y): for first element of the string, we could have x or y so x y y: for second we have y xy yy (x|y)*: for the last n-2 elements of the string of the language with n length: it could be xxxyyyyyyy, yyyyyxxxxxxxxxxx, yyxxxyxyxyxyyyyy, yyyyxyxxyxyy,yyxxxxyxy, xxyyy,,..... and so on. its any concatenation of x and y and any length of it

OpenStudy (anonymous):

so basically you have a lot

OpenStudy (anonymous):

may I ask are you taking up computer science? or discrete mathematics?

OpenStudy (anonymous):

discrete math

OpenStudy (anonymous):

oh yeah its really awesome when you get to Finite State Machines, Automata, and the turing machines

OpenStudy (anonymous):

have you taken up group theory?

OpenStudy (anonymous):

okkk i have one more question that builds up on this but give me a few minutes ok???

OpenStudy (anonymous):

ok ok :))

OpenStudy (anonymous):

THNNNNNKKKKSSS :)))))))))

OpenStudy (anonymous):

do you know matrices? they are used in group codes, or codes which are in matrices. basically codes are just strings of the numbers you sent which are encoded by the extra elements which are attached to it

OpenStudy (anonymous):

ik matrices but i didnt learn it in this course but linear algebra

OpenStudy (anonymous):

like we skipped over it in this course

OpenStudy (anonymous):

yep and you're to use it here

OpenStudy (anonymous):

in group codes

OpenStudy (anonymous):

Draw a state diagram and display a transition table for the finite-state automation that accepts the language defined by the regular expression (x|y)y(x|y)*

OpenStudy (anonymous):

ok ok. first I'll write the part of the machine which will take care of (x|y)y: |dw:1340526912222:dw| for (x|y)* we have: |dw:1340527028977:dw| so we have: |dw:1340527171485:dw|

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!