Reference no: EM13300080
Qn 1 Arrange the following functions in ascending order of growth. This means, if function g(n) immediately follows f(n) in your list, then it should be the case that f(n) 2 O(g(n)). You should give a proof of f(n) 2 O(g(n)) for every consecutive pair of functions in your ordered list.
Qn 2 Prove by induction on n that the following expression is true:
Qn 3 Consider the following iterative algorithm
a) What does this algorithm compute?
b) What is its basic operation?
c) How many times is the basic operation executed? (You must formally justify this answer using the mathematical analysis discussed in class.)
d) What is the efficiency class of this algorithm?
e) Suggest an improvement or a better algorithm altogether and indicate its efficiency class.
Qn 5 Solve the following recurrence relations (show your work):
a) x(n) = 4x(n 1) for n > 1 where x(1) = 3.
b) x(n) = x(n 1) + 5 for n > 1 where x(1) = 2.
c) x(n) = x(n 1) + n for n > 1 where x(1) = 1.
d) x(n) = 3x(n=2) + n for n > 1 where x(1) = 0:5 (solve for n = 2k).
e) x(n) = nx(n 1) for n > 0 where x(0) = 1.
Love canal is now
: Love Canal is now: According to Darden, Hill, Thomas and Thomas, in their book Race and Uneven Development (1987), metropolitan Detroit needs to: According to the Myers and Pitkin article "Demographic Forces and Turning Points in the American City, 1..
|
State the reaction between fe3+ and scn-
: Write the reaction between Fe3+ and SCN- in which [Fe(SCN)3] forms. b) Determine the equilibrium expression for K associated with this reaction
|
What is the emf induced in the inner solenoid
: one solenoid is centered inside another. the outer one has a length of 45.0 cm and contains 6800 coils, what is the EMF induced in the inner solenoid
|
What happened to the price of your bond
: Right away, market interest rates jumped, and the YTM on your bond rose to 6 percent. What happened to the price of your bond?
|
What does algorithm compute eciency
: What does algorithm compute - what is its basic operation and how many times is the basic operation executed?
|
What should the investor pay
: If the investor purchasing the rights to the royalties requires a return of 7 percent per year, what should the investor pay?
|
Calculate the fuel load density and the opening factor
: A hotel room has a floor area of 10 m by 4 m and is 2.5 high and has a window which is 1.6 m high and 3 m wide. The room contains some furniture and other commodities containing 50 kg polyurethane with 25 MJ/kg and 350 kg wood with 18 MJ/kg.
|
Calculate how high is the image formed by the contacts
: The far point of a nearsighted person is 8.5 m from her eyes, and she wears contacts that enable her to see distant objects clearly. How high is the image formed by the contacts
|
At what price did it sell shares to the market
: Suppose that Hilton Web-Cams has made only one offering of common stock. At what price did it sell shares to the market?
|