Question

The theoretical foundation of computer science. Q. Discuss size trade-offs between Turing machines and programs that...

The theoretical foundation of computer science.

Q. Discuss size trade-offs between Turing machines and programs that compute the same function.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

Small programs can be executed in O(log n) time or O(n) time which means linearly. This is the running time which we generally get from small programs and this is what is expected from bigger problems as well. It is hard to achieve O(1) running time which is made possible in case of hashing. But there are worst cases too.

But in case of turning machine, it is also same just one need to make sure is that the machine does halt. The key insight is that in order for a Turing machine to halt, it cannot enter a loop. Since a Turing machine will always follow the same sequence after being a specific state, if it ever becomes that same state twice, we know the machine is caught in an infinite loop and will never finish. Therefore, the theoretical maximum number of steps it can run is the maximum number of possible different states for the machine without being the same exact state twice.

I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)

Add a comment
Know the answer?
Add Answer to:
The theoretical foundation of computer science. Q. Discuss size trade-offs between Turing machines and programs that...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Theoretical Foundation of Computer Science. Is this a regular language: a set consisting of strings x...

    Theoretical Foundation of Computer Science. Is this a regular language: a set consisting of strings x such that x is of prime length or x is of odd length. Prove your answer.

  • Discuss the cost-benefit trade-offs between options and forwards, and in what market situations each would be...

    Discuss the cost-benefit trade-offs between options and forwards, and in what market situations each would be used.

  • Using suitable diagrams, explain the relationship between computer science and software engineering and discuss the three...

    Using suitable diagrams, explain the relationship between computer science and software engineering and discuss the three ways of considering quality with practical examples.

  • Discuss the major theoretical differences between child-centered and teacher-directed early childhood education programs. What theories underlie...

    Discuss the major theoretical differences between child-centered and teacher-directed early childhood education programs. What theories underlie child-centered programs? What theories underlie teacher-directed programs? What does each type of program emphasize in its work with young children? Now imagine you have been hired as an educational consultant to the president of the United States. What policy would you recommend to the federal government concerning preschool education? What children should be targeted How much government involvement should there be? Who will bear...

  • Using suitable diagrams, explain the relationship between computer science and software engineering and discuss the three...

    Using suitable diagrams, explain the relationship between computer science and software engineering and discuss the three ways of considering quality with practical examples.                                                                                                                                                                                                                               Using practical examples, identify and describe seven key factors that have changed software development and describe the members of the development team of a software project.                                                                                                                                                                                                                                                                                In your own words, clearly discuss the engineering approach of building a system and explain the four reasons of modeling a...

  • Stuck on this computer science assignment Write a program that demonstrates binary searching through an array...

    Stuck on this computer science assignment Write a program that demonstrates binary searching through an array of strings and finding specific values in an corresponding parallel double array. In all cases your output should exactly match the provided solution.o. Provided files: Assignment.cpp - starter assignment with function prototypes companies.txt - file for program to read. earnings.txt - file for program to read. Input1.txt Input2.txt - Test these inputs out manually, or use stream redirection Input3.txt - These inputs are based...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

  • COSC 1437 C++2 Project Assignment 3 Description: Computer Science Department is evaluating its professors to see...

    COSC 1437 C++2 Project Assignment 3 Description: Computer Science Department is evaluating its professors to see which professor has the highest rating according to student input. You will create a ProfessorRating class consisting of professor Name and three ratings. The three ratings are used to evaluate easiness, helpfulness, and clarity. The value for each rating is in the range of 1 to 5, with 1 being the lowest and 5 being the highest. Your program should contain the following functionalities:...

  • One example of computer-aided design (CAD) is building geometric structures inter- actively. In Chapter 4, we...

    One example of computer-aided design (CAD) is building geometric structures inter- actively. In Chapter 4, we will look at ways in which we can model geometric objects comprised of polygons. Here, we want to examine the interactive part. Let’s start by writing an application that will let the user specify a series of axis- aligned rectangles interactively. Each rectangle can be defined by two mouse positions at diagonally opposite corners. Consider the event listener canvas.addEventListener("mousedown", function() { gl.bindBuffer(gl.ARRAY_BUFFER, vBuffer); if...

  • I need Summary of this Paper i dont need long summary i need What methodology they used , what is the purpose of this...

    I need Summary of this Paper i dont need long summary i need What methodology they used , what is the purpose of this paper and some conclusions and contributes of this paper. I need this for my Finishing Project so i need this ASAP please ( IN 1-2-3 HOURS PLEASE !!!) SPECIAL ARTICLES tole of Monetary Policy C Rangarajan What should be the objectives of monetary policy? Does the objective of price stability conflict with the goal of achieving...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT