{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Palindrome (Turing Test Proj)

Palindrome (Turing Test Proj) - Palindrome Created by...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Palindrome Page 1 Created by Julio "Alex" Gonzalez This Turing Machine tests whether the 1s and 0s within parentheses are palindromes. The machine moves both left and right and replaces the numbers on the tapes with parentheses. If the number located within the parentheses is indeed a palindrom, the machine will print out "Y." If the number located within parentheses is not a palindrome, it will print out the letter "N." This Turing Machine is limited by the fact the palindromes given to it must be within parentheses. It would identify the number 111(1)000 as a palindrome, and ignore the remaining numbers.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Palindrome Page 2 1,0, ,1 Looking for left parentheses. It wasn't found, so the machine keeps searching. 1,1, ,1 Looking for left parentheses. It wasn't found, so the machine keeps searching. 1,(, ,2 The left parentheses was found, so the next step is to read the leftmost endpoint. 2,0,(,14 If the left endpoint is 0, write a ( and send it to state 14. 14,(, ,3 State 2 allows the machine to write what it needs to, and state 14 causes the read/write head to move. It is used solely as a storage state.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern