2.1 algorithms Flashcards

1
Q

what is abstraction

A

only picking out necessary instructions from a problem and ignoring extra detail

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is decomposition

A

breaking down a bigger problem into a smaller problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is algorithmic writing

A

writing a clear set of instructions to follow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is start/stop in flowchart

A

circle/oval

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is input/output in flowchart

A

parallelogram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is decision in flowchart

A

diamond

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is instruction in flowchart

A

rectangle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is linear search

A

keep going through all values in list one by one until desired value is found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is binary search

A
  1. list needs to be sorted
  2. split list into half
  3. if desired value isnt middle value discard the side of list that does have desired value in it
  4. split new list
  5. keep repeating until desired value found
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what do sorts do

A

sort list in order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

advantages of bubble sort and insertion sort

A
  • easy to writer code for
  • simple to understand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

advantages for merge sort

A

much more efficient for longer lists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly