Re: [OT] Re: Recursive Functions
From: Marcus Lessard (spam08_at_spam.com)
Date: 10/29/03
- Next message: Sheldon Simms: "Re: Is a "cast" ever necessary in "return"?"
- Previous message: Sheldon Simms: "Re: questions about combination using recursion"
- In reply to: Glen Herrmannsfeldt: "Re: [OT] Re: Recursive Functions"
- Next in thread: Eric Sosman: "Re: [OT] Re: Recursive Functions"
- Reply: Eric Sosman: "Re: [OT] Re: Recursive Functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Oct 2003 11:01:42 -0500
"Glen Herrmannsfeldt"
...
>
> If n is a power of two, such as 2**m, it will square the number m times.
>
> I suppose as an example for recursive algorithms it is a little better
than
> factorial.
>
> -- glen
>From a mathematical point of view there is no difference in breaking up the
computation into a set of squares and then multiplying. What is going on in
the underlying processing that makes using the squares more efficient than
just multiplying x by itself n times?
ML
- Next message: Sheldon Simms: "Re: Is a "cast" ever necessary in "return"?"
- Previous message: Sheldon Simms: "Re: questions about combination using recursion"
- In reply to: Glen Herrmannsfeldt: "Re: [OT] Re: Recursive Functions"
- Next in thread: Eric Sosman: "Re: [OT] Re: Recursive Functions"
- Reply: Eric Sosman: "Re: [OT] Re: Recursive Functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|