List the first five elements in the sequence

Assignment Help Engineering Mathematics
Reference no: EM131970632

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?

Reference no: EM131970632

Questions Cloud

What was the amount of dividends declared during the year : The Retained Earnings balance was $22, 900 on January 1. Net income for the year was $18, 100. What was the amount of dividends declared during the year?
What types of sanctions were used : What types of sanctions were used by CEO Jeff Skilling and others to keep staff members in alignment with compnay norms? Be specific.
Provide the journal entry for the revaluation of land : Blake Nelson invested $67,000 in the Lawrence & Kerry partnership for ownership equity of $67,000. Provide the journal entry for the revaluation of land.
List some of the problems with the use of roe : List some of the problems with the use of ROE, and in your own words, explain the nature of these problems.
List the first five elements in the sequence : COMP1805B - W18 Assignment - you may assume that the logarithms are in the base of your choice, but you should specify what base you using in your derivation
Determine the revenue per employee for each year : Aaron and Rogers, CPAs earned $8,654,900 during 2016 using 71 employees. Determine the revenue per employee for each year.
What is the kronur exchange rate : Assume purchasing power parity holds and a Big Mac sells for $3.30 in the United States and kronur 125.69 in Iceland.
Prepare the journal entries on revcos books : Prepare the journal entries on Revco's books to report the above information assuming Revco accounts for its investment in Ron Corporation.
Which division has the most residual income : Determine the residual income for each division. Sporting Goods Division Health Care Division Commercial Division. Which division has the most residual income?

Reviews

len1970632

5/4/2018 7:41:41 AM

The student needed only part of the assignment to be done. All the questions needed are solved. Be sure that your name, student number and tutorial section is clearly indicated at the top of your submission. Grades will be deducted if any of the three are not present. The questions should be answered in order. If you do not answer a question then state that you are not providing a solution. Your assignment must be stapled if it is more than one page. Do not assume that the stapler in HP 3115 will have staples in it.

len1970632

5/4/2018 7:41:31 AM

Grades will be deducted if you do not follow these instructions. A subset of the assignment will be graded. The parts of the assignment to be graded will be determined at random at the submission deadline. Your solution must be typeset. You can use L ATEX, Google Docs, MS Word, etc. You will submit a hard-copy (printout) of your solution in the class drop-box in room HP 3115. You must also submit a PDF of your solution (electronically) to cuLearn by the deadline. Both the hard-copy and electronic copy are due at the same time. If your hard-copy is handed in after the drop-box is emptied, your submission will not be graded.

Write a Review

Engineering Mathematics Questions & Answers

  Prime number theorem

Dirichlet series

  Proof of bolzano-weierstrass to prove the intermediate value

Every convergent sequence contains either an increasing, or a decreasing subsequence.

  Antisymmetric relations

How many relations on A are both symmetric and antisymmetric?

  Distributed random variables

Daily Airlines fies from Amsterdam to London every day. The price of a ticket for this extremely popular flight route is $75. The aircraft has a passenger capacity of 150.

  Prepare a system of equations

How much money will Dave and Jane raise for charity

  Managing ashland multicomm services

This question is asking you to compare the likelihood of your getting 4 or more subscribers in a sample of 50 when the probability of a subscription has risen from 0.02 to 0.06.]  Talk about the comparison of probabilities in your explanation.

  Skew-symmetric matrices

Skew-symmetric matrices

  Type of taxes and rates in spokane wa

Describe the different type of taxes and their rates in Spokane WA.

  Stratified random sample

Suppose that in the four player game, the person who rolls the smallest number pays $5.00 to the person who rolls the largest number. Calculate each player's expected gain after one round.

  Find the probability density function

Find the probability density function.

  Develop a new linear programming for an aggregate production

Linear programming applied to Aggregate Production Planning of Flat Screen Monitor

  Discrete-time model for an economy

Discrete-time model for an economy

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd