Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Set={a,b} and L7:"All words that begin with a a and end with a b" is given L7 可以定义为
a(a+b)*b
“+”是什么意思?而且,如何解决这个问题?
a # first letter is always 'a' (a+b)* # zero or more sequence of letters 'a' or 'b' [one letter at time] b # last letter is always 'b'
这里的+意思是or,因此,我们有以下结果:
+
or
ab abb abbb aaab abbbb aaaab abbbbb aaaaab .....