Lecture 1: introduction to 6.00 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is declarative knowledge?

A

it is composed as a statement of fact

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is imperative knowledge?

A

is about how to accomplish something, it is the “know how” knowledge

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what were the two types of computers?

A

fixed program computers & stored program computers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is the advantage of stored program computers?

A

it is more versatile than a fixed-program computer by interpreting a program given to it. it carries out those instructions rather than being built to do just one thing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What defines a programming language?

A

Syntax, static semantic & semantic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is the syntax of a language?

A

syntax are sequences of characters and symbols that constitute a well-formed string. determines whether a string is legal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is the static semantics of a language?

A

determines which well-formed strings have a meaning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is the semantics of a language?

A

determines what the meaning is. semantics assign a meaning to a legal sentence (assuming no static semantic error)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what sorts of errors can occur in a program?

A

programs can crash, run in a loop forever or run correctly but provide a wrong answer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what can you build given a small set of instructions?

A

any computer program you want. computers have a small number of built-in instructions, combining them you can do complex things.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a programming language?

A

provides a set of primitive control instructions and how to combine them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an approximation algorithm?

A

is an algorithm that given an input finds a solution that is close to the actual solution but the actual solution. it is often easier and faster to compute than the actual solution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an algorithm?

A

A description on how to perform a computation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does it mean when an algorithm has converged?

A

It mean that the algorithm has halted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the flow of control?

A

the order in which the instructions are executed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the termination condition?

A

When the algorithm tell the program to stop.

17
Q

What is an interpreter?

A

A program that can execute any legal sets of instructions

18
Q

what is the name of the instructions provided to the computer?

A

Source code

19
Q

How does an interpreter program work?

A

you provide the source code to the program at which point the language checks the code and then interprets the code ultimately producing an output.

20
Q

how does a compiler program work?

A

you provide the source code to the program at which point the language checks it and then compiles it and then translates it to another language called the object code.

21
Q

What is an object code?

A

it is the language that is closer to what the computer knows how to interpret then the hardware interpreter interprets the compiled code and produces an output. compiled languages are more efficient.