-3
$\begingroup$

I know that the lanuguage of all strings of odd length {a,b} can be expressed as: (a+b)((a+b)(a+b))^*.

But what about an odd length over (a,b,c}?

$\endgroup$
  • $\begingroup$ I edited the question to make sense; please note the differences in phrasing and why they are relevant! $\endgroup$ – Raphael Mar 24 '17 at 18:47
  • 3
    $\begingroup$ Welcome to Computer Science! What have you tried? Where did you get stuck? We do not want to just hand you the solution; we want you to gain understanding. However, as it is we do not know what your underlying problem is, so we can not begin to help. See here for tips on asking questions about exercise problems. If you are uncertain how to improve your question, why not ask around in Computer Science Chat? $\endgroup$ – Raphael Mar 24 '17 at 18:47
  • 3
    $\begingroup$ In particular, why do you think you have to do something very different from the binary case? $\endgroup$ – Raphael Mar 24 '17 at 18:48
1
$\begingroup$

It is actually simple...

(a+b+c)((a+b+c)(a+b+c))^*.

Explanation

It is trivial since when you can do odd length over a language with 2 symbols, then why can't it be extended??
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.