6.00x Chapter 1 - Sheet1 Flashcards
Declarative knowledge
statements of fact :: y * y = x^2
Imperative knowledge
“how to” or recipe for deducing information
algorithm
inputs -> computations ->output
fixed vs stored program computer
fixed-program cannot do anything other than its original purpose without modification whereas stored-program manipulates instructions from memory using native elements
interpreter
executes a legal set of instructions from a language
flow of control
the order in which instructions are executed
universal turing machine
simplest machine that can compute any function
Turing Complete
if a language can be used to simulate a universal turing machine it qualifies
literals
number 3.5 or string “hello”
infix operators
(+, =, / , -)
syntax
defines what order of characters and symbols are well formed “cat dog boy” or in python (3.5 34)
static semantics
defines which syntactically valid strings have meaning ie: 3.2 / ‘abc’ is syntactically correct but produces a static semantic error
semantics
associates a meaning with each syntactically correct string of symbols that has no static semantic errors.. semantic errors : loops/ crashes/ unintended output