Course Solutions Uncategorized (Solved) : 7 10 Marks Following Algorithms Indicate Whether Lacks Finiteness Definiteness Effectivene Q35750801 . . . .

(Solved) : 7 10 Marks Following Algorithms Indicate Whether Lacks Finiteness Definiteness Effectivene Q35750801 . . . .

 

7. [10 marks] For each of the following algorithms, indicate whether it lacks finiteness, definiteness, and/or effectiveness:

7. [10 marks] For each of the following algorithms, indicate whether it lacks finiteness, definiteness, and/or effectiveness: a) procedure double(n: positive integer) while n>0 n:-2n b) procedure divide(n: positive integer) while n20 n:= n-1 c) procedure sum(n: positive integer) sum := 0 while i < 10 sum sum +i d) procedure choose(a, b: integers) x:either a or b Show transcribed image text

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post