Asked by Iah
Hi. The question I'm having problems with:
Write the body of an iterative function to compute n!, where n! = n(n-1)(n-2)...1.
Then, analyze this function where the work unit is the multiplication operation.
I think I have the first part, but I'm confused on the second part.
Please help!!
When multiplying, use shorthand notation.
Example
56*n!
where you thinking something like
f(n+1) = (n+1)f(n), n>1, f(1)=1
Write the body of an iterative function to compute n!, where n! = n(n-1)(n-2)...1.
Then, analyze this function where the work unit is the multiplication operation.
I think I have the first part, but I'm confused on the second part.
Please help!!
When multiplying, use shorthand notation.
Example
56*n!
where you thinking something like
f(n+1) = (n+1)f(n), n>1, f(1)=1
Answers
There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.