Problem Solving and Church-Turing Thesis
Chapter overview: This chapter connects formal computational models with the general idea of solving problems. It explains how problems are encoded as mathematical objects and introduces the Church-Turing thesis about effectively calculable procedures.
9.1 Ability of Computational Mechanisms to Solve Problems
Introduction / Definition
A computational mechanism solves a problem when it provides the required output for every valid input according to the problem specification. The mechanism may be a finite automaton, PDA, Turing machine, program, or another formal model. Different mechanisms have different limits and resource requirements.
Syntax / Structure / Formula
Problem: I → O
Solver A: A(I) = required O
Detailed Explanation
A DFA can solve pattern-recognition problems in regular languages. A PDA can solve many nested-structure problems. A Turing-complete model can express general algorithms, but some problems remain uncomputable.
Example
Problem: Is a binary string ending in 01?
DFA → YES/NO
Output / Result
The DFA provides the correct answer for every input string.
Important Points / Notes
- Problem solvability depends on the computational model.
- Correctness and termination are separate requirements.
- Resource limits can make a solvable problem impractical.
Mini Practice Question
Give one problem naturally solved by a finite automaton and one requiring a stronger model.
9.2 Formalization of Problems
Introduction / Definition
Formalization converts an informal problem statement into precise mathematical inputs, outputs, and correctness conditions. A well-formalized problem identifies the input domain, expected output, constraints, and acceptance criteria. This makes algorithm design and proof possible.
Syntax / Structure / Formula
- Problem = (Input set, Output specification, Correctness condition)
Detailed Explanation
For sorting, the input is a finite sequence of comparable elements and the output is a sequence containing the same elements in nondecreasing order. The correctness condition can be expressed as sortedness plus preservation of multiplicities.
Example
Input: [4,1,3,2]
Output: [1,2,3,4]
Condition: output is sorted and is a permutation of input.
Output / Result
The output satisfies the formal specification.
Important Points / Notes
- Formalization removes ambiguity.
- Input size becomes measurable.
- Correctness proofs rely on precise specifications.
Mini Practice Question
Formalize the problem of finding the maximum value in an integer array.
9.3 Church-Turing Thesis
Introduction / Definition
The Church-Turing thesis states, informally, that every effectively calculable function can be computed by a Turing machine. It is a foundational claim connecting the intuitive notion of an algorithm with a precise mathematical model. It is a thesis rather than a theorem because “effectively calculable” is an informal concept.
Syntax / Structure / Formula
- Informal effective procedure ≈ Turing-computable function
Detailed Explanation
The thesis does not claim that Turing machines are the fastest possible computers. It concerns the boundary of what can be computed by an effective mechanical procedure. Many independent models—lambda calculus, recursive functions, and Post systems—support the same broad class of computable functions.
Example
Effective algorithm → Turing-machine representation
and vice versa in the standard computability sense.
Output / Result
This supports a common mathematical notion of computability across different models.
Important Points / Notes
- It is about computability, not practical speed.
- It is based on an informal notion of effective procedure.
- Mutual equivalence of many models strengthens the thesis.
Mini Practice Question
Why is the Church-Turing thesis called a thesis rather than a mathematical theorem?