Please enable JavaScript.
Coggle requires JavaScript to display documents.
What is Computation? (Basic Machine Architecture (memory (data, sequence…
What is Computation?
Basic Machine Architecture
memory
data
sequence of instructions
input
ALU = Arithmethic Logic Unit
does primitive operations
addition
subtraction
Control Unit
contains 1 program counter
takes in sequence of instructions from memory and sends to ALU
output
Objects
programs manipulate data objects
all objects have a TYPE
the type defines what kinds of things programs can do to them
Scalar
can't be subdivided
the number 5
Python Scalar Objects
int
integers
float
represents real numbers
3.2 or 5.6
bool
represents booleans that are either true or false
NoneType
only one value
none
Non-Scalar
have an internal structure that can be accessed
a list of numbers (5, 6, 7,8)
Primitives
English example
words
What is a "program"?
a sequence of definitions and commands
What are "Commands"?
statements that instruct the computer's interpreter to do something