Lecture Definitions Flashcards
(76 cards)
Domain
the class of input a function accepts.
Range
all the possible return values of a function.
Abstraction
Act of leaving out of consideration one or more properties of a complex object so as to attend to others.
Generalisation
The process of formulating general concepts by abstracting common properties of instance.
Command
No outputs, meant for side effects
Reporter (function)
Any type of output
Predicate (function)
boolean output
function definition
- Take in 0 or more inputs ad return only 1 output
- the same inputs MUST yield the same outputs
- Rules: no state, no mutation, no side effects
why use functions?
- allow for the generalization of code
- they can be composed together to make even more magnificent things
- they allow for functional programming (increased speeds etc)
Functional Programming
- programming only using functions (not commands)
- as they don’t have state they an run on multiple systems at the same time with allows for faster computing and cloud computing.
Recursion
Technique for defining functions that use themselves to complete their own definition.
Overflow
when the number of represented things exceeds the number of digits allocated for it
Roundoff
True real number can’t be stored exactly (due to fixed number of bits)
1 nibble
4 bits
1 hexadigit
16 things
8 bits
1 byte
1 byte
8 bits
2 hexadgits
256 things
N bits
2^N things
Computing tools and techniques…
are used to create computational artifacts (e.g. IDEs: integrated development environments)
enhance process of finding a solution to a problem.
Effective collaboration teams practice:
interpersonal communication, consensus building, conflict resolution, negotiation.
Programming Paradigms
the concepts and abstractions used to represent the elements of a program and the steps that compose a computation
or:
a way to classify the style of programming
functional model of programing
Computation as evaluation of functions. (therefore posses rules of functions)
Imperative Programming
Sequential programming (computation as a series of steps) -rules: allows mutations, allows assignment