Execute for a fixed number of iterations the comparison of two random integers. More...
#include <stdlib.h>
#include "problem.h"
Functions | |
void | prepareInput (int inputSize) |
Select a random number in the range 1. | |
int | execute () |
Execute by invoking malloc(numElements) a total of numT times. | |
void | postInputProcessing () |
No postprocessing needed. | |
void | problemUsage () |
No specific problem usage. | |
Variables | |
static int | m |
First random integer. | |
static int | n |
Second int against which to check; will contain same value as m. | |
static int | psize |
Number of times to compare. |
Execute for a fixed number of iterations the comparison of two random integers.
int execute | ( | ) |
Execute by invoking malloc(numElements) a total of numT times.
.numElements
output sum to be sure is correct.
void postInputProcessing | ( | ) |
No postprocessing needed.
void prepareInput | ( | int | inputSize | ) |
Select a random number in the range 1.
.2^32
void problemUsage | ( | ) |
No specific problem usage.
int m [static] |
First random integer.
int n [static] |
Second int against which to check; will contain same value as m.
int psize [static] |
Number of times to compare.
Algorithm Development Kit 1.0