Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Factorial algorithm execution time

by Anonymous Monk
on Oct 18, 2002 at 04:27 UTC ( [id://206217]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub fact4{  
      #no recursion at all
    ...
      }
      return $n;
    }
    
  2. or download this
    sub fact5{  
      #no recursion at all
    ...
      }
      return $n;
    }
    
  3. or download this
    sub fact6{
      #divide and conquer
    ...
        return Math::BigInt->new($m);
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://206217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-24 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found