Chapter 1 Flashcards

1
Q

Algorithm

A

Finite sequence of step by step instructions carried out to solve a problem

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

Bubble sort

A

In order - nothing occurs.
Not in order - swap the items.
In order when no swaps occur.

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

First-fir algorithm

A

Consider items in order they are given

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

First-fir decreasing

A

Algorithm requires the items to be in decreasing order before applying the algorithm

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

Full-bin packing

A

Uses inspection to select items to combine to full bins.

Remaining items are packed using the first-fit algorithm.

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