algorithms Flashcards
what does unambiguous mean?
this means that the instruction cannot be misunderstood. simply saying ‘turn’ would be ambiguous because you could turn left or right.
what does sequence mean?
an ordered set of instructions.
what does algorithm mean?
a precise method for solving a problem.
what does high-level programming language mean?
a programming language that resembles natural human language .
what does flowchart mean?
a graphical representation of an algorithm. Each step in the algorithm is represented by a symbol. symbols are linked together with arrows showing the order in which steps are executed.what
what does pseudo-code mean
a structures, code- like language that can be used to describe an algorithm.
what does variable mean?
a ‘container’ used to store in a variable is referred to as a value. the value stored in a variable is not fixed . the same variable can store different values during the course of a program and each time a program is run.
what does identifier mean?
a unique name given to a variable or a constant. using descriptive names for variables make code much easier to read
what does arithmetic operator mean?
an operator that performs a calculation on two numbers.
what does constant mean?
a ‘container’ that holds a value that never changes .like variables, constants have unique identifiers.
what does construct mean?
a component from which something is built. letters and numbers (i.e. a to z and 0 to 9) are the constructs we use to built our language and convey meaning . bricks and cement are the basic constructs of a building.
what does selection mean?
a construct that allows a choice to be made between different alternatives.
what does Iteration mean?
a construct that means the repetition of a process.an action is repeated until there is a desired outcome or a condition is met. it is often referred to as a loop.
what does IF…THEN…ELSE statement mean?
the IF…THEN…ELSE statement allows a choice to be made between two alternatives based on whether or not a condition is met (e.g. IF it is cold THEN wear a jumper ELSE wear a T-shirt).
what does relational operator mean?
an operator that compares two values.