Algorithms Flashcards
What is an algorithm?
An algorithm is a set be set instruction that solves a problem
What is a selection?
A order in which blocks are carried out
What is iteration?
Iteration is the command repeated a set number of times before an outcome is achieved
What is selection ?
A question asked and depending on question the algorithm follows one or two courses of action
What makes a successful algorithm?
Correctness and efficiency
What does correctness and efficiency mean?
Correctness is if the algorithm solves the problem .
efficiency is how quick and the least possible time to solve the problem.
Why are flowcharts used?
Flowcharts are to makes the algorithms visual
Arrows used to show flow of diagram
What is operators?
Symbols to tell computer to perform particular action on data
Types of operators
Arithmetic, Boolean, Relational
What is arithmetic?
Mathematical symbols e.g 6exponent arrow up to 2 is 6*6 is 36
What is quotient?
It is whole num divsion
What is modulus?
It is the number’s remainder?
What is relational operators?
Symbols used to compare values of 2 or more variables
What are Boolean operators/logical?
Used in Venn diagrams
And,or, not