Guest User

Untitled

a guest
Jul 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. T(n):
  2. return BB(n)
  3.  
  4. halting_problem_solver(TM):
  5. n := number of states in TM
  6. BB_n := T(n)
  7. steps := 0
  8. in each step of TM() simulation:
  9. steps = steps + 1
  10. if steps > BB_n:
  11. return T will not halt!
  12. return T halts
Add Comment
Please, Sign In to add comment