Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 255857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:57:56+00:00 2026-05-11T21:57:56+00:00

I’m studying for a test on Turing machines, and I’m stuck with a problem

  • 0

I’m studying for a test on Turing machines, and I’m stuck with a problem in which I have to create a Turing Machine that serves as a function calculator for:

f(x,y) = x ^ y 

I understand my tape input would come separated like this:

1's of base 0 1's of exponent 

With my tape output being like

1's of base 0 1's of exponent 0 1's of the computed result

How would I go about placing X’s and Y’s on the tape(s)? (It can be a multi-tape machine)
What would the state diagram look like?

Note: I’m using unary with 1 used to represent 0 and 0 used not as value but as a delimiter.

So:

   0 = delimiter
   1 =    0
   11 =   1
   111 =  2
   1111=  3
   11111= 4 
   etc.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:57:56+00:00Added an answer on May 11, 2026 at 9:57 pm

    I’m guessing a bit here, it’s been a little while since I played with Turing machine simulators. First of all, I would want to divide the task up into several conceptual steps:

    1. increment a number on the tape by the value of another number on the tape
    2. multiply a number on the tape by the value of another number on the tape – this can be done by performing step 1 repeatedly
    3. square a number on the tape – x ^ 2 is worked out by putting x on the tape then multiplying it by itself
    4. (the final step) raise a number on the tape to the power of the value of another number on the tape – this can be done by performing step 2 repeatedly

    To perform a task repeatedly N times, put N onto the tape, perform the task once, then subtract 1 from the end of the number N. Repeat until the number N is gone from the tape.

    Hopefully this is sufficient to get you started anyway. The state machine can be constructed more or less mechanically in this fashion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 121k
  • Answers 121k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you add a new button to your toolbar's default… May 12, 2026 at 12:21 am
  • Editorial Team
    Editorial Team added an answer If you actually want the list to behave as a… May 12, 2026 at 12:21 am
  • Editorial Team
    Editorial Team added an answer You need to call repaint() and revalidate(). The first one… May 12, 2026 at 12:21 am

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.