Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
15 Cards in this Set
- Front
- Back
Bubble Sort Algorithm |
Orders words or numbers Compare adjacent items, for each pair of values: 1. If in order, leave them. 2. If not in order swap them. Continue until you go through lists and there are NO swaps. |
|
Quick Sort Algorithm |
Quick and efficient Select a pivot and split items into 2 sublists: those less than pivot + greater than pivot. Leave in same order.Binary |
|
Binary Search Algorithm |
Searches ordered list to find whether a particular item is in list. QUICK: concentrates on midpoint of ever halving list. 1. Select middle item M and see if target T before or after M, discard part of list T not in. 2. Continue till T found. |
|
Binpacking |
Way of sorting items into containers |
|
First-fit |
1. Take items in order given. 2. Place each item in first available bin that can take it.
N.B Start from bin 1 each time |
|
First-fit decreasing |
1. Reorder items into descending order. 2. Apply first-fit algorithm to descending list. |
|
Full-bin Packing |
1. Use observation to find combinations of items that will fill a bin - pack these first. 2. Pack remaining using first-fit algorithm. |
|
Lower Bound (binpacking) |
Gives number of bins needed at least. Add size of each item + divide by bin size.
N.B Always round up ^^ |
|
Vertex Set |
List of vertices |
|
Edge Set |
List of edges |
|
Subgraph |
Part of original graph |
|
Vertices/Nodes |
Points on graph |
|
Edges/Arcs |
Lines connecting points |
|
Weighted graph/network |
When number associated with each edge |
|
Degree/Valency/Order |
No. edges incident on vertex |