mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 15:08:52 +00:00
Change initial data range
This commit is contained in:
@@ -14,8 +14,8 @@ void multiply_data_init(int nonce) {
|
|||||||
int y = nonce;
|
int y = nonce;
|
||||||
|
|
||||||
for (i = 0; i < 100; i++) {
|
for (i = 0; i < 100; i++) {
|
||||||
x = (x * 97 + 17) % 10009;
|
x = (x * 97 + 17) % 1009;
|
||||||
y = (y * 17 + 23) % 10007;
|
y = (y * 17 + 23) % 1007;
|
||||||
input1_multiply[i] = x;
|
input1_multiply[i] = x;
|
||||||
input2_multiply[i] = y;
|
input2_multiply[i] = y;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ void qsort_data_init(int nonce) {
|
|||||||
int x = nonce;
|
int x = nonce;
|
||||||
|
|
||||||
for (i = 0; i < 16384; i++) {
|
for (i = 0; i < 16384; i++) {
|
||||||
x = (x * 97 + 17) % 100000009;
|
x = (x * 97 + 17) % 100009;
|
||||||
input_qsort_data[i] = x;
|
input_qsort_data[i] = x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ void rsort_data_init(int nonce) {
|
|||||||
int x = nonce;
|
int x = nonce;
|
||||||
|
|
||||||
for (i = 0; i < 2048; i++) {
|
for (i = 0; i < 2048; i++) {
|
||||||
x = (x * 97 + 17) % 10000007;
|
x = (x * 97 + 17) % 100007;
|
||||||
input_rsort_data[i] = x;
|
input_rsort_data[i] = x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user