2 public class TestRunner {
10 int iter = 1200; //200;
12 //Vector testdata = new Vector(iter);
13 FibHeap fh = new FibHeap();
14 FibHeap fh_t = new FibHeap();
15 for(int i = 0; i < iter; i++) {
16 int rand = (77 * seed + 1) % 1024;
17 //testdata.addElement(new Integer(rand));
19 fh = fh.insertFH(rand);
20 fh_t = fh_t.insertFH(rand);
22 // makeFH from the test data
23 /*FibHeap fh = new FibHeap();
24 for(int i = testdata.size(); i > 0; i++) {
25 fh = fh.insertFH((Integer)(testdata.elementAt(i-1)).intValue());
27 FibHeap fh_t = new FibHeap();
28 for(int i = testdata.size(); i > 0; i++) {
29 fh_t = fh_t.insertFH((Integer)(testdata.elementAt(i-1)).intValue());
32 int[] rfh = new int[iter];
33 int[] rfh_t = new int[iter];
36 while(!fh.isEmpty()) {
38 fh = fh.deleteMinFH();
42 while(!fh_t.isEmpty()) {
43 rfh_t[j] = fh_t.minFH();
44 fh_t = fh_t.deleteMinFH_t();
52 for(i = 0; i < j; i++) {
53 if(rfh[i] != rfh_t[i]) {