Algorithms and Programming Flashcards

1
Q

Algorithm

A

A set of instructions for solving a problem.

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

Decomposition

A

breaking problems down into smaller more manageable problems

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

Abstraction

A

removing of unnecessary detail

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

Flowchart

A
  • shows process
  • easy to read
  • universal symbols
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Merge sort

A

Divide then combine (more efficient on big lists, fast but difficult to code)

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

Bubble sort

A

comparing two next to each other(simple to code but slow)

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

Linear search

A

search each one (takes lots of memory)

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

binary search

A

split in the middle each time (needs to be list but faster on big lists)

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

Identifier

A

the ‘name’ given to a variable

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

Pseudocode

A
  • easy for humans to understand

- easily be converted to code

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

Assigning

A

Giving a variable a value

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

MOD

A

returns the remainder of the division

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

DIV

A

returns the integer

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

AND gate

A

has to have two of the same to return 1

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

OR gate

A

1 or 0 returns a 1

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

NOT gate

A

flips the input round

17
Q

syntanx

A

the SPAG of the code

18
Q

Machine code

A

machine-level instructions that are uniquely read by computer processors using patterns of 1s and 0s.

19
Q

Assembly code

A

A low level language that uses mnemonics to represent machine code instructions