-
Notifications
You must be signed in to change notification settings - Fork 0
/
testRandomRecordingAlg.cpp
43 lines (36 loc) · 1.02 KB
/
testRandomRecordingAlg.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
32
33
34
35
36
37
38
39
40
41
42
43
#include <iostream>
#include "randomRecordingAlg.cpp"
using namespace std;
using namespace RDP;
int main() {
int k = 31415;
BigInteger D[] = {1, 19, 23, 33, 47, 55, 79, 85, 89, 93};
int size = sizeof(D)/sizeof(*D);
// int * Dw;
// int Wn = get_Wn(D, size);
// cout << "Wn > " << Wn << endl;
// int size_Dw;
// int WMAX = getWMax(k, Wn, D, size);
// cout << "Wmax = " << WMAX << endl;
// get_Dw(Dw, D, 3, size, size_Dw);
// for (int i =0; i<size_Dw; i++) {
// cout << Dw[i] << " ";
// }
// cout << endl;
// int * Dw_complement;
// size_Dw = 0;
// get_Dw_complement(Dw_complement, D, 3, size, size_Dw);
// std::cout << size_Dw << std::endl;
// for (int i =0; i<size_Dw; i++) {
// cout << Dw_complement[i] << " ";
// }
// cout << endl;
BigInteger * result;
int resultSize;
RDPAlgorithm(k, D, size, result, resultSize);
for (int i =0; i<resultSize; i++) {
cout << result[i] << " ";
}
cout << endl;
return 0;
}