15#ifndef BRANCHANDBOUND1TREE_KRUSKAL_H
16#define BRANCHANDBOUND1TREE_KRUSKAL_H
17#include "../data_structures/mst.h"
27static void swap(
Graph * graph,
unsigned short swap_1,
unsigned short swap_2);
static void swap(Graph *graph, unsigned short swap_1, unsigned short swap_2)
Swaps two edges in the list of edges in the Graph.
void kruskal(Graph *graph, MST *mst)
The Kruskal algorithm to find the Minimum Spanning Tree O(|E| log |V|)
static int pivot_quicksort(Graph *graph, unsigned short first, unsigned short last)
The core of the quick sort algorithm.
void wrap_quick_sort(Graph *graph)
The wrapper of the quick sort algorithm.
static void quick_sort(Graph *graph, unsigned short first, unsigned short last)
The quick sort algorithm O(n log n).
Minimum Spanning Tree, or MST, and also a 1-Tree.