Register Machines - PowerPoint PPT Presentation

1 / 22
About This Presentation
Title:

Register Machines

Description:

Register-Machine-Computability ... Then h is register-machine-computable. ... maximum of the base-2 log of register contents over the course of computation ... – PowerPoint PPT presentation

Number of Views:55
Avg rating:3.0/5.0
Slides: 23
Provided by: rgregor
Category:

less

Transcript and Presenter's Notes

Title: Register Machines


1
Register Machines
  • An Alternative Analysis of Sequential Computation

2
Example 5.1
3
Some Pseudocode
4
Example 5.1.2 (Successor Function)
5
Example 5.1.3 (Binary Addition Function)
6
Other Examples of Function Computers
  • Example 5.1.4 (Binary Multiplication Function)
  • Example 5.1.5 (Unary Factorial Function)

7
Example 5.1.6 (Ackermanns Function)
  • H(0, m) m 1
  • H(n 1, 0) H(n, 1)
  • H(n 1, m 1) H(n, H(n 1, m))

8
M computes k-ary f
  • Ms registers R1, R2, , Rk contain arguments of
    f
  • Ultimately, register Rk 1 contains f(n1, n2, ,
    nk)
  • if f(n1, n2, , nk) is undefined, then Ms
    computation never terminates

9
Formal Definition
  • ? R1, R2, , Rm, possibly infinite set of
    registers
  • ? ??1, ?2, , ?t? with t?2 a finite sequence of
    instructions
  • Start instruction
  • Halt instruction

10
Instruction Types
  • Ri 0 or Ri 0
  • Ri or Ri
  • Ri Rj? goto L or Ri Rj? goto L
  • Ri Rj? goto L or Ri Rj? goto L or just
    goto L

11
Register-Machine-Computability
  • f is said to be register-machine-computable if
    there exists register machine that computes f
  • Ackermanns function etc. is register-machine-comp
    utable

12
An Equivalence Result
  • Let h be Turing-computable number-theoretic
    function. Then h is register-machine-computable.
  • If f is register-machine-computable, then f is
    Turing-computable.

13
Summary
  • Turing-computable function
  • Markov-computable function
  • register-machine-computable function
  • The above notions are mutually equivalent

14
Language Acceptance
  • Input tape and output tape
  • 1s represent as and 2s represent bs
  • Initially, input word w on tape followed by
    terminating 0
  • If w ? L, then 1 written to output tape
  • Same Number of as as bs
  • Register-machine-acceptable language

15
Language Recognition
  • If w ? L, then 0 written to output tape
  • Palindromes (Example 5.3.2)

16
Time Analysis
  • Uniform Cost Assumption Size of register
    contents make no difference
  • timeM(n)
  • Palindromes computes in O(n2) steps

17
Space Analysis
  • spaceM(n) perhaps maximum of the base-2 log of
    register contents over the course of computation

18
Edmonds Thesis
  • Problem is computationally feasible provided it
    has polynomial-time solution.
  • Language-acceptance problem is computationally
    feasible provided language is accepted in
    polynomially bounded time.
  • Example Is w a palindrome?
  • Computationally feasible

19
Problems with the Thesis
  • Computable by what?
  • Which model of computation is the favored one?
  • Does it make a difference?

20
Polynomial Relatedness
  • Suppose that multitape MTM accepts language L in
    O(f(n)) steps. Then there exists MRM that
    accepts L in time O(f(n)2) under the uniform
    cost assumption.
  • Suppose that MRM accepts language L in O(g(n))
    steps under the assumption of uniform cost. Then
    there exists multitape MTM that accepts L in time
    O(g(n)3).

21
Results Regarding Polynomial Relatedness of Models
22
Conclusion
  • In invoking Edmonds Thesis, it seems to make no
    difference which model we take Thesis to be
    talking about.
Write a Comment
User Comments (0)
About PowerShow.com