Ask Engineering Mathematics Expert

Assignment - Need to solve only questions 1 (c), 2 (c), 3 (a, b), 4 (a, b), 5 (a, b), 6 (b), 7 (b), 8 (b) and 9 (a)

Asymptotic Complexity -

Given two functions f, g : R+ |→ R,

1. f ∈ O(g(n)) if and only if ∃ c ∈ R+, n0 ∈ R≥0 (∀n ≥ n0 (f(n) ≤ c · g(n))).

2. f ∈ Ω (g(n)) if and only if ∃ c ∈ R+, n0 ∈ R≥0 (∀n ≥ n0 (f(n) ≤ c · g(n))).

3. f ∈ Θ (g(n)) if and only if O(g(n)) and Ω(g(n)).

1. Give derivations that prove the following. For convenience, you may assume that the logarithms are in the base of your choice, but you should specify what base you are using in your derivation.

(a) (n - 8)2 ∈ Θ(n2).

(b) 7n4 - 5n3 log n - 6n2 + 9n log n - 13n ∈ ?(n4).

(c) 2 log(3n3 - n2 + 43) ∈ O(log n).

2. Prove that each of the following are false (using the definitions of O and Θ).

(a) 3n7/2 - 2n2 is O(n3log n).

(b) n3/58 - 7n2 log n is Θ(n2).

(c) 4n ∈ O(2n).

3. In this question, you will prove that

log(n!) = Θ(n log n).

Recall that n! = n x (n - 1) x · · · x 2 x 1.

(a) Show that log(n!) ∈ O(n log n). [Hint: log(a x b) = log a + log b.]

(b) Show that log(n!) ∈ ?(n log n). [Hint: Consider only the first n/2 terms.]

4. You are given an algorithm that uses T(n) = a · n2 + b · 3n basic operations to solve a problem of size n, where a and b are some real non-negative constants.

Suppose that your machine can perform 400,000,000 basic operations per second.

(a) If a = b = 1, how long does it take for your algorithm to solve problems of size n = 10, 20, 50.

For each size of n, include the time in seconds and also using a more appropriate unit (minutes, hours, days, years, centuries, or millennia! Assume that a year is 365 days.).

(b) Let a = 0 and b = 1/9. Find the largest value of n that that allows the algorithm to run in less than a year.

5. Suppose that Algorithm A has runtime complexity O(n3) and Algorithm B has runtime complexity O(n log n), where both algorithms solve the same problem.

(a) How do the algorithms compare when n = 12?

(b) How do the algorithms compare when n is very large?

Induction

6. For this question, you are not allowed to use the known solution of what the sum of a geometric sequence is.

(a) Consider the inequality, for all n ≥ 2, given by

i=1n4/5i < 1

Why would it be difficult to prove this using induction?

(b) In order to prove the inequality in (a), prove the following stronger inequality, for all n ≥ 2, using induction instead. Show why proving this bound proves (a).

i=1n 4/5i ≤ 1 - 1/5n

7. Consider the Fibonacci numbers:

2472_figure.png

(a) Prove by induction that fn ≥ (1.5)n-1, for all n ≥ la. Find the smallest positive integer la you can for this.

(b) Prove by induction that fn ≤ ((1+√5)/2)n-1, for all n ≥ lb. Find the smallest positive integer lb you can for this.

8. Consider the following recursive definition:

1713_figure1.png

(a) List the first 5 elements in the sequence {an}.

(b) Prove by induction that an = 2n2 - 3n + 5 for n ≥ 1.

9. This question is about tiling shapes with L-trominoes: three 1 x 1 squares attached so that they form an L-shape. To tile a shape means to fill it completely with non-overlapping copies of a base shape. For example, Figure 1 shows that we can tile an 8 x 8 square whose top-left corner is missing with L-trominoes.

1748_figure2.png

(a) Prove that for n ≥ 1, any 2n x 2n square with one corner missing can be tiled with L-trominoes.

Extra Problems -

10. Consider the following algorithm:

for i from 1 to n do

for j from A to B do

print 'q'

end do

end do

(a) How many times is q printed when A = 10 and B = 23?

(b) How many times is q printed when A = n - i and B = n?

(c) How many times is q printed when A = 1 and B = n - 1?

(d) How many times is q printed when A = i and B = n - 1?

(e) How many times is q printed when A = 1 and B = n2?

11. The n-th harmonic number, denoted Hn, is defined by the sum

Hn = 1 + 1/2 + 1/3 + 1/4 + · · · + 1/n = k=1n 1/k.

In this question, you will prove that Hn ∈ Θ(log n).

(a) Show that Hn ∈ Θ(log n). [Hint: First look at the last n/2 terms.]

(b) Show that Hn ∈ ?(log n).

12. (a) Prove by induction that 1 + 2n ≤ 3n for all n ≥ 1.

(b) Prove by induction, for all n ≥ 1, that

i=1n 1/(i(i + 1)) = n/(n+1)

More Extra Questions -

13. Let a and b be real numbers. Prove that min(a, b) x max(a, b) = a x b.

14. The absolute value of a real number x, denoted |x|, is defined as

2162_figure3.png

Note that if a = |b|, then a = ±b.

(a) The triangle inequality states that for all real numbers x and y,

|x + y| ≤ |x| + |y|.

Prove this result.

(b) Let x and y be integers that are not equal. Prove that there is a unique real number z such that |x - z| = |y - z|.

(c) From part (b), was it necessary that x ≠ y for your proof to work?

Engineering Mathematics, Engineering

  • Category:- Engineering Mathematics
  • Reference No.:- M92808285
  • Price:- $25

Priced at Now at $25, Verified Solution

Have any Question?


Related Questions in Engineering Mathematics

Q undirected vs directed connectivitya prove that in any

Q: Undirected vs. directed connectivity. (a) Prove that in any connected undirected graph G = (V, E) there is a vertex v ? V whose removal leaves G connected. (Hint: Consider the DFS search tree for G.) (b) Give an examp ...

All these questions should be answered in matlab 1 generate

All these questions should be answered in MATLAB !!! 1. Generate a set of 3 random patterns of dimension 12 where each value is +1 or -1.(3 random 12*12 matrix) 2. Create a 12-unit Hopfield network (a 12x12 matrix) from ...

I have these questions for a homework assignment and have

I have these questions for a homework assignment and have to show work. This works with MIPS coding language and is the class Introduction to Computer Architecture. 1. Find the 2's complement representation (in 32-bit he ...

Question 1 - many spas many componentsconsider 4 types of

Question 1 - Many spas, many components Consider 4 types of spa tub: Aqua-Spa (or FirstSpa, or P1), Hydro-Lux (or SecondSpa, or P2), ThirdSpa (or P3) and FourthSpa (or P4), with the production of products P1, ..., P4 in ...

Analytical methods for engineers assignment - calculusthis

ANALYTICAL METHODS FOR ENGINEERS ASSIGNMENT - CALCULUS This assignment assesses Outcome - Analyse and model engineering situations and solve problems using calculus. Questions - Q1. Differentiate the following functions ...

Clculus assignment -q1 find the total differential of w

CALCULUS ASSIGNMENT - Q1. Find the total differential of w = x 3 yz + xy + z + 3 at (x, y, z) = (1, 2, 3). Q2. Find the value of the double integral ∫∫ R (6x + 2y 2 )dA where R = {(x, y)| - 2 ≤ y ≤ 1, y 2 ≤ x ≤ 2 - y. Q3 ...

Numerical analysis assignment -q1 define the following

Numerical Analysis Assignment - Q1. Define the following terms: (i) Truncation error (ii) Round-off error Q2. Show that if f(x) = logx, then the condition number, c(x) = |1/logx|. Hence show that log x is ill-conditioned ...

Question what is the signed binary sum of 1011100 and

Question : What is the signed binary sum of 1011100 and 1110101 in decimal? Show all of your work. What is the hexadecimal sum of 9A88 and 4AF6 in hexadecimal and decimal? Show all of your work.

Question a signal starts at point x as it travels to point

Question : A signal starts at point X. As it travels to point Y, it loses 8 dB. At point Y, the signal is boosted by 10 bB. As the signal travels to point Z, it loses 7 dB. The dB strength of the signal at point Z is -5 ...

Show all your work not just the answerswhen you multiply 21

(SHOW ALL YOUR WORK, not just the answers) When you multiply: 21 x 68 you most likely do: 8x1 + 8x20 + 60x1 + 60x20 = 1, 428 So, there are 4 multiplications and then 3 additions. How long would it take a computer to do t ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As