In order to solve Problem 1-1, we first convert all times into microseconds:
1 second = 10^6 microseconds
1 minute = 60*10^6 microseconds
1 hour = 3600* 10^6 microseconds
1 month ~= 30*24*3600*10^6 microseconds
1 year ~= 12*30*24*3600*10^6 microseconds
1 century ~= 100*12*30*24*3600*10^6 microseconds
Some of our functions are elementary math operations that can be algebraically solved. Let k be the amount of microseconds determined above:
lg(n) = k → 2^(k) = n. So a problem of size floor [2^(k)] can be solved in time k.
Similarly n^0.5=k → k^2=n, so a problem of floor[k^2] size can be solved in time k.
Expressions like n! And nlg(n) cannot be solved in a simple algebraic method, however using an online graph problem like desmos and graphing y_{1}=k alongside y_{2}=zetafunction(x) and then locating the intercept and using the floor function provides us with solutions for n!=k
The Landing is a social site for Athabasca University staff, students and invited guests. It is a space where they can share, communicate and connect with anyone or everyone.
Unless you are logged in, you will only be able to see the fraction of posts on the site that have been made public. Right now you are not logged in.
If you have an Athabasca University login ID, use your standard username and password to access this site.
We welcome comments on public posts from members of the public. Please note, however, that all comments made on public posts must be moderated by their owners before they become visible on the site. The owner of the post (and no one else) has to do that.
If you want the full range of features and you have a login ID, log in using the links at the top of the page or at https://landing.athabascau.ca/login (logins are secure and encrypted)
Posts made here are the responsibility of their owners and may not reflect the views of Athabasca University.
We block sites that track your web browsing without your permission. If a link is greyed out, click once to enable sharing, once more to share.
Comments
Interesting solution for the last row n!. Now that's a creative work around. It's cool to see what different methods everyone's using to solve the same question.
Erika Racette September 28, 2021 - 7:24pm