-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
31 lines (29 loc) · 927 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "LinkedList/LinkedList.cpp"
#include "Stack/Stack.cpp"
#include "Queue/Queue.cpp"
#include "BST/BST.cpp"
#include "AVL/AVL.cpp"
#include "Heap/Heap.cpp"
//#include "DisjointSet/DisjointSet.cpp"
#include "Graph/AdjacencyMatrix/MGraph.cpp"
//#include "Graph/AdjencyList/LGraph.cpp"
#include "Algorithms/Kruskals.cpp"
#include "Algorithms/MergeSort.cpp"
int main() {
// pair<int,int> edge1 = pair<int,int>(0,1);
// pair<int,int> edge2 = pair<int,int>(0,2);
// pair<int,int> edge3 = pair<int,int>(1,3);
// pair<int,int> edge4 = pair<int,int>(1,4);
// pair<int,int> edge5 = pair<int,int>(2,3);
// pair<int,int> edge6 = pair<int,int>(3,4);
// vector<pair<int,int>> edgeList{edge1, edge5, edge4, edge6, edge2, edge3};
// int numNodes = 5;
// kruskalsAlgo(edgeList, numNodes);
vector<int> arr{5, 3, 6, 4, 2, 9, 1};
mergeSort(arr);
for (int i : arr) {
cout<<i<<" ";
}
cout<<endl;
return 0;
}