2.1)Algorithms Flashcards
1
Q
What is abstraction?
A
- Ignore unnecessary information and focus on important facts
2
Q
Why would you use abstraction?
A
- Simplifies a problem to make it less complex. Makes it more straightfoward
3
Q
What is decomposition?
A
Breaks a problem down into smaller tasks making it easier to solve
4
Q
Why do people use decomposition?
A
- Different people work on different parts of a larger problem. Can be recombined to produce a full solution
5
Q
What is algorithmic thinking?
A
Final stage as logical steps are followed to solve a problem
6
Q
How is alorithmic thinking used?
A
- Is broken down using decomposition into smaller problems.
7
Q
What is an algorithm?
A
- A set of instructions presented in a logicalmsequence
8
Q
Whats a Linear search?
A
- Each data item is searched in order from first item to last as they were in a line.
- Not very efficient
9
Q
What is a binary search?
A
- Middle point of data is selected
- More efficient
- Data must already be sorted
10
Q
Whats a merge sort?
A
- divide and conquer
- Divides list into half until each data item is seperate
11
Q
Whats a bubble sort?
A
- Comparison of adjacent data elements
- Data elements are swapped if not in correct
12
Q
What is a curved rectangle?
A
Start/Stop terminator
13
Q
Whats a rectangle?
A
Operation (process)
14
Q
Whats a kite?
A
Decision
15
Q
Whats a paralellogram?
A
Input/output