Help for this page

Select Code to Download


  1. or download this
            
        P:\test\MJD>ack1 9
        Ack(3,9): 4093
        78.843 83.671 0 0
    
  2. or download this
    P:\test\MJD>timethis "c:javac ackermann.java && java ackermann 9"
    
    ...
    TimeThis :    Start Time :  Fri Sep 02 22:01:28 2005
    TimeThis :      End Time :  Fri Sep 02 22:01:29 2005
    TimeThis :  Elapsed Time :  00:00:01.031
    
  3. or download this
    use Memoize;
    memoize("Ack");
    ...
    print "Ack(3,$NUM): $ack";
    #print times;
    print "Ack() called $count times";
    
  4. or download this
    P:\test\MJD>ack1 9
    Ack(3,9): 4093
    ...
    Ack(3,9): 4093
    0.046000
    Ack() called 12,294 times