Lecture 1: introduction to 6.00 Flashcards
What is declarative knowledge?
it is composed as a statement of fact
what is imperative knowledge?
is about how to accomplish something, it is the “know how” knowledge
what were the two types of computers?
fixed program computers & stored program computers
what is the advantage of stored program computers?
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.
What defines a programming language?
Syntax, static semantic & semantic
what is the syntax of a language?
syntax are sequences of characters and symbols that constitute a well-formed string. determines whether a string is legal.
what is the static semantics of a language?
determines which well-formed strings have a meaning.
what is the semantics of a language?
determines what the meaning is. semantics assign a meaning to a legal sentence (assuming no static semantic error)
what sorts of errors can occur in a program?
programs can crash, run in a loop forever or run correctly but provide a wrong answer.
what can you build given a small set of instructions?
any computer program you want. computers have a small number of built-in instructions, combining them you can do complex things.
What is a programming language?
provides a set of primitive control instructions and how to combine them.
What is an approximation algorithm?
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.
What is an algorithm?
A description on how to perform a computation.
What does it mean when an algorithm has converged?
It mean that the algorithm has halted.
What is the flow of control?
the order in which the instructions are executed.