Write five strings that belong to the language defined by the regular expression: (x|y)y(x|y)*.
@experimentX can u help me?
5 strings ... lol with x or y ..and y .. and x or y??
i guessss
(x/y) means x or y right??
| this means the union i think
so yes r*=kleen closure and |=or
union?? so how should the word be xyx* yyy* isn't it something like that??
nooo its not union its or sorry i messed up
how should the word be?? i mean starting??
idk i dont get it myself
xyxxx or xyyyyy or yyxxx or yyyyy
that is if by | you mean or
yes i do. Can u explain how u got that answer
shouldn't it " belong to the language" ??
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
so basically you have a lot
may I ask are you taking up computer science? or discrete mathematics?
discrete math
oh yeah its really awesome when you get to Finite State Machines, Automata, and the turing machines
have you taken up group theory?
okkk i have one more question that builds up on this but give me a few minutes ok???
ok ok :))
THNNNNNKKKKSSS :)))))))))
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
ik matrices but i didnt learn it in this course but linear algebra
like we skipped over it in this course
yep and you're to use it here
in group codes
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)*
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|
Join our real-time social learning platform and learn together with your friends!