Hey guys,
My difficult to understand prof and poor course notes have been making working through my assignments really tough. If anyone could help me with this problem or lead me in the right direction I would be forever thankful!
Analyze the following pseudo code and give a tight bound on the running time as a function of n. You can assume that all individual instructions are elementary.Show your work.
Thank you!!
My difficult to understand prof and poor course notes have been making working through my assignments really tough. If anyone could help me with this problem or lead me in the right direction I would be forever thankful!
Analyze the following pseudo code and give a tight bound on the running time as a function of n. You can assume that all individual instructions are elementary.Show your work.
PHP Code
<?php
m := 1; s := 1;
while m <= n do
for j = 1 to 3[logm] do
s := s + 1
od
m := 4*m
od.
Thank you!!


