rockinrachel9099
rockinrachel9099
04.09.2019 • 
Mathematics

1-7.[3] prove the correctness of the following recursive algorithm to multiply two natural numbers, for all integer constants c ≥ 2.function multiply(y, z)comment return the product yz.1. if z = 0 then return(0) else2. return(multiply(cy,⌊z/c⌋) + y • (z mod c))

Solved
Show answers

Ask an AI advisor a question