


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Turing machines, a fundamental concept in computer science developed by alan turing in the 1930s. Turing machines consist of a control unit with a read/write head that can read and write symbols on an infinite tape. The importance of turing machines, the halting problem, and an attempt to construct a program to solve the halting problem, which leads to a contradiction. The document also covers problem-solving basics and introduces decision trees and game trees.
Typology: Slides
1 / 4
This page cannot be seen from the preview
Don't miss anything!
CSCI 100
Think Like Computers
Turing Machines
Turing Machines
It is widely accepted that anything that is intuitively computable can be computed by a Turing machine If we can find a problem for which a Turing-machine solution can be proven not to exist, then the problem must be unsolvable Turing machine processing
Halting Problem
Halting Problem
program, called SolvesHaltingProblem that determines for any program Example and input SampleData whether program Example halts given input SampleData
Proposed program for solving the Halting problem
Halting Problem
Halting Problem
Proposed program for solving the Halting problem
Halting Problem
It uses the algorithm from SolvesHaltingProblem , such that: NewProgram writes “Halts” if Example loops, and NewProgram goes into an infinite loop if Example halts
If SolvesHaltingProblem prints “Halts”, program NewProgram goes into an infinite loop If SolvesHaltingProblem prints “Loops”, program NewProgram prints “Halts” and stops In either case, SolvesHaltingProblem gives the wrong answer
Halting Problem
Construction of NewProgram
Solving Problems
Exercise 1
Decision trees