1/18
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Three things to consider when deciding whether algorithm is succesful or not
Accuracy - must lead to expected outcome
Consistency - must produce same outcome everytime it’s run
Efficiency - must solve problem in shortest time possible
variable
container used to store data
identifier
unique name given to variable or constant
arithmetic operator
operator that performs calculation on two numbers
operator
character used to represent action (‘x’ for multiplication, ‘/’ for division)
DIV
returns whole number - quotient like division
MOD
returns remainder - modulus
^
to the power of - exponention -
e.g 3^3 = 27
what are the three ways algorithms can be displayed?
written descriptions, flowcharts and pseudocode
selection
construct that allows choice to be made between different alternatives
iteration
construct that makes process repeat until condition is met aka a loop
sequential
follows an order, one after another