State the definition of an algorithm

Assignment Help Engineering Mathematics
Reference no: EM131465973

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.

Reference no: EM131465973

Questions Cloud

How much pure coal can be obtained in given time period : A slurry (mix of water and insoluble material) of crushed mine coal is fed to a cyclone separator at a rate of 8.0 t/h. The mine coal averages 78% pure coal.
Explain how big data relates to online marketplaces : Explain how big data relates to online marketplaces such as Amazon and eBay. How do online marketplaces use big data?
Determine the initial amounts of brine solutions : Three brine solutions, B1, B2, B3, are mixed. B1 is one-half of the total mixture. Brine B1 is 2.5% salt, B2 is 4.5% salt, and 83 is 5.5% salt To this mixture.
List the four components of gross domestic product : List the four components of Gross Domestic Product (GDP) and provide an example of each.
State the definition of an algorithm : State the definition of an algorithm and define specific attributes that must be possessed by an algorithm
Find the required feeds of the solution and benzene : Pure ethyl alcohol is produced by feeding a distillation column a 40% alcohol solution (the remainder water) mixed with benzene.
Each station in group caused worst-case behavior: : In the penny fab, batching the pennies together to move through each station in a group caused worst-case behavior:
Recall your favorite activities-hobbies : communicate any actions you might take to increase your current level of physical activity or any choices you might make that would promote a healthy lifestyle
Relative slopes of the bid-rent curves for groups : Students, retirees, families with two working parents with no children and families with one working parent with children.

Reviews

Write a Review

Engineering Mathematics Questions & Answers

  Q1 the bending moment m of a beam of length l is given

q.1 the bending moment m of a beam of length l is given bydmdx wx1where w is the load constant. if m0 0 find m as a

  Stationary heat-conduction problem

1. The stationary heat-conduction problem is governed by Poisson's equation (in 2D Cartesian coordinates):

  Calculate and interpret the profit variance

Calculate and interpret the profit variance and calculate and interpret the revenue variance - How are the variances calculated above related?

  Demand-side constraints

How many demand-side constraints are there? Write the demand-side constraints.

  Effect of correlation between pre- and post-test scores

Compare the results of the tests in the two parts. Comment on the effect of correlation between pre- and post-test scores

  Problem regarding the minfly golf company manufactures

Minfly Golf Company manufactures golf balls at Philadelphia, Chicago, and Denver. Cases of golf balls are shipped to warehouses in Orlando, Dallas, and Los Angeles. The following table provides the weekly capacities of the factories and the minimu..

  Comparing two population means

Question 1: When comparing two population means with an unknown standard deviation you use a t test and you use N-2 degrees of freedom.

  For this assignment use regression to complete the

for this assignment use regression to complete the assignment belowuse information from the modular background readings

  Determine the best mix of crops

Determine the best mix of crops to maximize their revenue. The farmers also have the opportunity to buy a 78-acre farm adjacent to their land. They would like to narrow their selection of crops to corn, strawberries, or a combination of the two.

  What mix of aircraft should be purchased

What ‘‘mix'' of aircraft should be purchased if the company desires to maximize its contribution per day? (Note. Consider a knot = 1 mile/hour.)

  Find the center line and control limits for the chart

Question 1: A process is to be monitored with standard values m = 10 and s = 2.5. The sample size is n = 2. (a) Find the center line and control limits for the chart.

  Check conditions of the implicit function theorem

Let x4y3 - ty + 2 = 3xt2 - x7, where x is a variable and y and t are parameters. Check whether the two conditions of the Implicit Function Theorem hold at point A = (1, 1, 1)

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