Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use strict;
    ...
    use List::Util 'shuffle';
    my @arr = shuffle <>;
    print @arr;
    
  2. or download this
    ./shuffle.pl big1.txt >tmp && mv tmp big1.txt
    ./shuffle.pl big2.txt >tmp && mv tmp big2.txt
    ...
    ./shuffle.pl long1.txt >tmp && mv tmp long1.txt
    ./shuffle.pl long2.txt >tmp && mv tmp long2.txt
    ./shuffle.pl long3.txt >tmp && mv tmp long3.txt
    
  3. or download this
    $ NUM_THREADS=1 ./llil4judy-no6 big{1,2,3}.txt long{1,2,3}.txt >out.tx
    +t
    llil4judy start
    ...
    vector stable sort     1.125 secs
    write stdout           0.283 secs
    total time             3.233 secs
    
  4. or download this
    ~/j904/bin/jconsole llil5.ijs big{1,2,3}.txt long{1,2,3}.txt out.txt
    
    ...
    Classify, sum, sort:     4.82435
    Format and write output: 2.05906
    Total time:              9.32962
    
  5. or download this
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    +~~~~~~~~~
    // llil4judy.cc
    ...
    
       return 0;
    }