Ask your own question, for FREE!
Discrete Math 8 Online
OpenStudy (anonymous):

Consider the following algorithm. x ← 1 for i {1, 2, 3, 4}do for j {1, 2, 3}do x ← x + x for k {1, 2, 3, 4, 5}do x ← x + 1 x ← x + 5 Count the number of + operations done by this algorithm. 1

OpenStudy (unklerhaukus):

is it 4[ 3(1)+5(2) ] ?

OpenStudy (unklerhaukus):

it is hard to tell where the FOR loops end, because the indenting isn't consistent

OpenStudy (anonymous):

Yes! Thank you very much!!!!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!