Introduction to Computation Flashcards Preview

6.00.1x > Introduction to Computation > Flashcards

Flashcards in Introduction to Computation Deck (15)
Loading flashcards...
1

What does a computer do?

1) Performs calculations
2) Remembers the results

2

What makes a computer turing complete?

6 Primitives

Right: Move the Machine’s head to the right of the current square
Left: Move the Machine’s head to the left of the current square
Print: Print a symbol on the current square
Scan: Identify any symbols on the current square
Erase: Erase any symbols presented on the current square
Nothing/halt: Do nothing

3

What can't a computer do?

Turing's halting problem.

Problems that take too long to solve (encryption relies on this).

4

What is an algorithm vs a program?

An algorithm is a conceptual idea.
A program contains concrete instantiations of algorithms.

5

What are the types of knowledge?

Declarative knowledge - Statements of fact.
Imperative knowledge - Methods for finding new information (algorithm).

6

What is a fixed vs stored program computer?

A fixed program computer is designed to perform specific functions.
A stored program computer stores and manipulates sequences of instructions.

7

What is a programming language?

A programming language provides a set of primitive operations with mechanisms to combine these into more complex but legal expressions.

8

What is syntax?

Expressions that are valid within a language.

9

What is static semantics?

Which syntactically valid expressions have a meaning.

10

What is formal semantics?

What meaning is associated with static sematically valid expressions.

11

What are errors of syntax, static and formal semantics?

Sytax: Incorrect code
Static semantic: Code does't make sense (i.e 5/@)
Formal semantic: Crashes
Infinite loop
Produces undesired answer

12

How do you float an object?

float(

13

How do you int an object?

int(

14

How do you get the type of an object?

type(

15

How do you get the length of an object?

len(