2.1)Algorithms Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is abstraction?

A
  • Ignore unnecessary information and focus on important facts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why would you use abstraction?

A
  • Simplifies a problem to make it less complex. Makes it more straightfoward
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is decomposition?

A

Breaks a problem down into smaller tasks making it easier to solve

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is algorithmic thinking?

A

Final stage as logical steps are followed to solve a problem

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

How is alorithmic thinking used?

A
  • Is broken down using decomposition into smaller problems.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an algorithm?

A
  • A set of instructions presented in a logicalmsequence
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a binary search?

A
  • Middle point of data is selected
  • More efficient
  • Data must already be sorted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Whats a merge sort?

A
  • divide and conquer
  • Divides list into half until each data item is seperate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Whats a bubble sort?

A
  • Comparison of adjacent data elements
  • Data elements are swapped if not in correct
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a curved rectangle?

A

Start/Stop terminator

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

Whats a rectangle?

A

Operation (process)

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

Whats a kite?

A

Decision

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

Whats a paralellogram?

A

Input/output

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

Whats a rectangle with lines on the side?

A

Subroutine

17
Q

Whats an Insertion sort?

A
  • split into sorted values on left and unsorted on the right
  • Values from unsorted are checked and put in correct position
  • continues throughout the list