Bubble Sort
Purpose
Sorts a list into ascending or descending order
[n]
The integer value of
Round to the nearest whole number
Bubble Sort
Algorithm
Quick Sort
Purpose
Sorts a list into ascending or descending order
Quick Sort
Algorithm
Binary Search
Purpose
To find an item in an ordered list
Binary Search
Algorithm
T is the value you are looking for
m is the value from the list
n is the number of items left in the list
Bin Packing
Purpose
Fitting items into a space
Bin Packing
First Fit Algorithm
2. Place each item in the first bin that it will fit in starting from bin 1 each time
Bin Packing
First Fit Decreasing Algorithm
Bin Packing
Full Bin Packing Algorithm
Graph
Definition
A graph consists of vertices/nodes connected by edges/arcs
Simple Graph
Definition
Contains no loops
No more than one edge between each pair of vertices
Weighted Graph
Definition
A graph that has a number or distance associated with each edge
Su graph
Definition
A part of a bigger graph
Degree / Valency / Order
Definition
The degree/valency/order of a vertex is the number of edges incident to it
Connected
Definition
Two vertices are connected if there is a path between them
Path
Definition
A finite sequence of edges such that the end vertex of one edge in the sequence is the start vertex if the next edge in the sequence
No vertex is repeated
Walk
Definition
A path in which you are permitted to repeat vertices
Cycle / Circuit
Definition
A closed path, the end vertex of the last edge is the start vertex of the first edge
Loop
Definition
An edge that starts and finishes at the same vertex
Digraph
Definition
A graph that has directions associated with its edges
Tree
Definition
A connected graph with no cycles
Spanning Tree
Definition
A spanning tree of a graph, G, is a su graph which includes all of the vertices in G and is also a tree