Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Engineering Mathematics Expert

1. State the definition of an algorithm and define specific attributes that must be possessed by an algorithm.

2. Mathematically prove or disprove: log6x = ½log3x

3. Prove that (n + 1)2 ∈ 0(n2) by giving the smallest value of n0 and corresponding constant c in the definition of 0-notation.

4. What, if anything, is wrong with the following statement?

Since n = O(n), 2n = O(n),..., we have k=1nkn = k=1nO(n) = O(n2)

5. Which of the following are true and which are false? If true, provide the smallest value of no and corresponding constants c1 and c2 satisfying the definition of Θ-notation.

a. 2/n + 4/n2 ∈ Θ(1/n2)

b. n log10n ∈ Θ (n log2n)

c. log2n½ ∈ Θ (log2n)

6. Give asymptotically tight big-O bounds for T(n) in each of the following recurrences. Justify your solution by naming the master method case, by iterating the recurrence or by using the substitution method.

a. T(n) = T(n - 2) + 1

b. T(n) = 2T(n/2) + n lg2 n

c. T(n) = 9T(n/4) + n2

d. T(n) = 3T(n/2) + n

e. T(n) = T(n/2 + n0.5) + n

7. Consider a set S of n ≥ 2 distinct numbers all greater than zero in unsorted order. For each of the problems below:

  • Give an algorithm to determine two distinct numbers x and y in the set S that satisfy the condition(s) of the problem.
  • Your algorithm must be specified using pseudocode in the style of the text.
  • You must justify that your algorithm has the requested run time.

a. In O(n Ig n) time, determine x, y ∈ S such that x ≠ y and |x-y| ≤ |w-z| for all w, z ∈ S such that w ≠ z.

b. In O(n) time, determine x, y ∈ S such that |x - y| ≥ |w-z| for all w, z ∈ S for all w, z ∈ S such that w ≠ z.

Engineering Mathematics, Engineering

  • Category:- Engineering Mathematics
  • Reference No.:- M92274712

Have any Question?


Related Questions in Engineering Mathematics

Assignment - lp problemsthe data for all the problems in

Assignment - LP problems The data for all the problems in this HW are included in the LP_problems_xlsx spreadsheet Problem 1: Cash Planning A startup investment project needs money to cover its cash flow needs. At the en ...

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.

Problem -consider a closed convex set x sub rd a function h

Problem - Consider a closed convex set X ⊂ R d , a function H : X x Ξ ι→ R d , and a deterministic nonnegative sequence {α n } such that n=0 ∑ ∞ α n = ∞ and n=0 ∑ ∞ (α n ) 2 = ∞. Consider an inner product (·, ·) on R d , ...

Assignment - introduction to math programmingdirections

Assignment - Introduction to Math Programming Directions - Formulate a linear programming model for the following description. Include definitions of decision variables, Objective function, and constraints. Augment your ...

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 ...

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 ...

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 ...

Question suppose that g is a directed graph in class we

Question : Suppose that G is a directed graph. In class we discussed an algorithm that will determine whether a given vertex can reach every other vertex in the graph (this is the 1-to-many reachability problem). Conside ...

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 ...

Question suppose g is an undirected connected weighted

Question : Suppose G is an undirected, connected, weighted graph such that the edges in G have distinct edge weights. Show that the minimum spanning tree for G is unique.

  • 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