From: yeom Date: Mon, 26 Jul 2010 22:55:37 +0000 (+0000) Subject: changes. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cc769d85805dec0b4e3c5e912be771896474dd0a;p=IRC.git changes. --- diff --git a/Robust/src/Benchmarks/oooJava/mergesort/BMergeSort4.java b/Robust/src/Benchmarks/oooJava/mergesort/BMergeSort4.java index ae7f5c35..74983e95 100644 --- a/Robust/src/Benchmarks/oooJava/mergesort/BMergeSort4.java +++ b/Robust/src/Benchmarks/oooJava/mergesort/BMergeSort4.java @@ -5,18 +5,18 @@ public class MergeSort4 extends MergeSort { public static void main(String[] args) { - int problemSize= 1048576; - if(args.length>0){ - problemSize=Integer.parseInt(args[0]); + int problemSize = 4194304; + if (args.length > 0) { + problemSize = Integer.parseInt(args[0]); } MergeSort4 sort = new MergeSort4(); sort.run(problemSize); } - - public MergeSort4(){ + + public MergeSort4() { super(); } - + public void runWorkAndTest() { sese run{ int output[]=sort(input, 0, input.length); @@ -26,165 +26,174 @@ public class MergeSort4 extends MergeSort { } } - public int[] serializedSort(int A[], int low, int high) { - if(A.length<=SERIALIZED_CUT_OFF){ - return serializedSort(A, low, high); - }else{ - if (A.length <= QUICK_SIZE) { - int[] R=new int[high-low]; - int max=R.length; - int j=low; - for(int i=0;i