Lecture 5-Algorithms, Turing Machines, & Universal Turing Machines Flashcards
1
Q
What is a UTM?
A
A UTM is:
A TM which can simulate an arbitrary TM on an arbitrary input
Reads from its own tape:
- The definition of the TM being simulated
- The tape of the TM being simulated
2
Q
What are the uses of UTMs?
A
- The ultimate imitation game
- Can imitate any computer
- Virtual machines (VM), e.g. to run
. Windows operating system on Linux,
. Linux on Windows,
. Android on Windows, - Java Virtual Machine (JVM) – runs on any computer
- Interpreters …
3
Q
What is a Compiler?
A
Source code compiled machine code all at one time
Fast execution
Compiled for specific Machine
Machine code sold/distributed
4
Q
What is an Interpreter?
A
Source code compiled line by line Slow execution Can be run on any computer Easier to debug Source code is sold/distributed