java.lang.ObjectPerformanceTester
public class PerformanceTester
A class that performs complexity experiments using a ListSearcher
Method Summary | |
---|---|
static void |
testBinarySearch(int n,
int numTrials)
Runs a binary search experiment with the given configurations. |
static void |
testLinearSearch(int n,
int numTrials,
boolean unordered)
Runs a linear search experiment with the given configurations. |
static void |
testShuffle(int n,
int numTrials)
Runs a shuffle experiment with the given configurations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void testBinarySearch(int n, int numTrials)
n
- The list sizenumTrials
- The number of runs per new problem sizepublic static void testLinearSearch(int n, int numTrials, boolean unordered)
n
- The list sizenumTrials
- The number of runs per new problem sizeunordered
- Specifies whether an unordered (or ordered) list should be usedpublic static void testShuffle(int n, int numTrials)
n
- The list sizenumTrials
- The number of runs per new problem size