Question: 1. Show that O( log a n ) = O( log b n ) for a , b > 1. Hint: log a n =
Problem-4: Using Big Oh notation, indicate the time requirement of each of the following tasks in the worst case. a. Display all the integers in an array of integers. b. Display all the integers in a chain of linked nodes. c. Display the nth integer in an array of integers. d. Compute the sum of the first n even integers in an array of integers. Problem-5: Show that 32+2" is 0(2") What values of c and N did you use? Problem-6: show that 4n2 +50n - 10 is O(n2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
