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

  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