Decision 1 Unit 1 Flashcards

0
Q

What is the Bin Packing First-Fit Decreasing algorithm?

A

Rearrange the items into descending order of size first.

Pace each item in turn into the first available bin that will fit.

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

What is the Bin Packing First-Fit algorithm?

A

Each object is placed into the first available bin that it will fit.

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

What is the Bubblesort algorithm?

A

Compare the 1st and 2nd no.s and swap if necessary. Continue this for the 2nd and 3rd, 3rd and 4th etc until the largest no. is last. This is the first pass. The last no. no longer needs to be compared.
If you make a complete pass without any swaps you can stop.

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

What is the Shuttlesort algorithm?

A

Compare the 1st and 2nd no.s and swap if necessary. Compare the 2nd and 3rd no.s, if a swap is made then compare the 2nd with the 1st again etc and swap if necessary.
Each time compare one extra number.

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