Graph Convolutional Branch and Bound v1.0.0
A TSP solver that combines a graph convolutional network with a 1-Tree branch-and-bound.
Loading...
Searching...
No Matches
kruskal.h
Go to the documentation of this file.
1
15#ifndef BRANCHANDBOUND1TREE_KRUSKAL_H
16#define BRANCHANDBOUND1TREE_KRUSKAL_H
17#include "../data_structures/mst.h"
18
19
21
27static void swap(Graph * graph, unsigned short swap_1, unsigned short swap_2);
28
29
31
39static int pivot_quicksort(Graph * graph, unsigned short first, unsigned short last);
40
41
43
49static void quick_sort(Graph * graph, unsigned short first, unsigned short last);
50
51
53
57void wrap_quick_sort(Graph * graph);
58
59
61
66void kruskal(Graph * graph, MST * mst);
67
68
69#endif //BRANCHANDBOUND1TREE_KRUSKAL_H
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|)
Definition: kruskal.c:131
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.
Definition: kruskal.c:123
static void quick_sort(Graph *graph, unsigned short first, unsigned short last)
The quick sort algorithm O(n log n).
Structure of a Graph.
Definition: graph.h:51
Minimum Spanning Tree, or MST, and also a 1-Tree.
Definition: mst.h:28