-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (25 loc) · 723 Bytes
/
main.cpp
File metadata and controls
32 lines (25 loc) · 723 Bytes
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
32
#include <iostream>
#include "algorithms/algorithms.h"
#include "data structures/data structures.h"
#include "utils/utils.h"
int main()
{
int n = 100;
int* input = DataGenerator::randomIntArray(n, 0, 100);
ArrayList a = ArrayList(input);
PriorityQueue pq = PriorityQueue(input, '>');
a.print();
for (int i = 0; i < n; ++i)
{
std::cout << pq.remove() << " ";
}
std::cout << std::endl;
// int ordering = RANDOM;
// std::vector<std::vector<int> > tests{{QUICK_SORT, ordering, ARRAY_LIST},
// {QUICK_SORT, ordering, LINKED_LIST}};
//
// Tester::unitTest(tests);
//
// Tester::benchmark(tests, 1, 10000, 10);
return 0;
}