3 Replies - 3347 Views - Last Post: 17 May 2010 - 12:19 PM

#1 SpeedisaVirus   User is offline

  • Baller

Reputation: 115
  • View blog
  • Posts: 855
  • Joined: 06-October 08

Turing Machines: Recursive Language...

Posted 15 May 2010 - 05:16 PM

Hello,

I'm currently working on a homework assignment and I am being told to prove a language is not recursive. I can't fathom why it would not be.

The Q:
Prove L={M| L(M) accepts only even length strings} is not recursive.

I personally can't fathom how this is not a recursive language. To me it seems like it meets all of the requirements. For every string in the language it will be able to decide that it is either even length or odd length when it reaches the end, no? The same would be true of it's complement, correct? Shouldn't this indicate that it is in fact recursive? Why is it not recursive?

It just seems reasonable that it would always halt on an input. Maybe there is some lack of understanding here? I guess if the string was infinitely long it would never decide but is that part of the why?

This post has been edited by SpeedisaVirus: 15 May 2010 - 05:17 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Turing Machines: Recursive Language...

#2 SpeedisaVirus   User is offline

  • Baller

Reputation: 115
  • View blog
  • Posts: 855
  • Joined: 06-October 08

Re: Turing Machines: Recursive Language...

Posted 15 May 2010 - 08:07 PM

Thinking...L(M) that accepts all even strings is decidable. Perhaps I am missing something in notation though. Perhaps this is saying that this is the language that accepts the machine that accepts all even strings which would them make this sort of a halting problem thing?
Was This Post Helpful? 0
  • +
  • -

#3 mojo666   User is offline

  • D.I.C Addict
  • member icon

Reputation: 409
  • View blog
  • Posts: 885
  • Joined: 27-June 09

Re: Turing Machines: Recursive Language...

Posted 17 May 2010 - 10:21 AM

I don't think this is as simple as finding a machine that accepts all even length strings. I'm reading "L={M| L(M) accepts only even length strings}" as "the set of all machines that only accepts even length strings". Note that "only accepting even length strings" is different from "accepting all even length strings". If you make a machine that accepts "00" and rejects all others then that would still be in L.
Was This Post Helpful? 0
  • +
  • -

#4 mostyfriedman   User is offline

  • The Algorithmi
  • member icon

Reputation: 729
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: Turing Machines: Recursive Language...

Posted 17 May 2010 - 12:19 PM

mojo is right..anyway at first sight, i could see that this language is undecidable because of what rice's theorem states.. anywayz, the proof of this by contradiction is pretty simple, think about it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1