Find the largest number of these intervals so

Assignment Help Chemistry
Reference no: EM13874361

Could somebody help with these two exercises please

Exercise 1:

Compatible intervals Given n open intervals (a1, b1), (a2, b2), . . . , (an, bn) on the real line, each representing start and end times of some activity requiring the same resource, the task is to find the largest number of these intervals so that no two of them overlap.

Investigate the three greedy algorithms based on

  1. a- Earliest start first.
  2. b- Shortest duration first.
  3. c- Earliest finish first.

For each of the three algorithms, either prove that the algorithm always yields an optimal solution or give a counterexample showing this not to be the case.

Exercise 2: 

Rumor spreading problem: There are n people, each in possession of a different rumor. They want to share all the rumors with each other by sending electronic messages. Assume that a sender includes all the rumors he or she knows at the time the message is sent and that a message may only have one addressee.

  1. a- Design a greedy algorithm that always yields the minimum number of messages they need to send to guarantee that every one of them gets all the rumors
  2. b- Give the efficiency of your proposed algorithm as a function of n.

Reference no: EM13874361

Questions Cloud

What are universal wastes? : What are universal wastes?
Company has calculated its pretax income : At the beginning of 2010, the retained earnings of the Cameron Company were $212,000. For 2010, the company has calculated its pretax income from continuing operations to be $120,000. During 2010, the following events also occurred:
How would presence of second technology that had higher cost : How would the presence of a second technology that had higher operating costs but lower capacity costs affect peak-load pricing and investment in the capital-intensive technology?
Inverse distance weighted interpolation : The following is a Python implementation of IDW. This function takes two input variables. Z is a list of lists where each element list contains four values: X, Y, Value, and Distance to target point. Z can also be a NumPy 2-D array. Variable b is the..
Find the largest number of these intervals so : Compatible intervals Given n open intervals (a1, b1), (a2, b2), . . . , (an, bn) on the real line, each representing start and end times of some activity requiring the same resource, the task is to find the largest number of these intervals so that n..
Explain why it is possible to interpret a two-part tariff : Explain why it is possible to interpret a two-part tariff as a two-block-rate tariff. Explain the circumstances under which this equivalency might not hold. Why might a consumer choose to have access and still consume zero units?
Practice of public health or community health nursing : Identify a new law or regulation that affects the practice of public health or community health nursing.
Show the number of students whose zip is 07070 : Show the number of students whose zip is 07070. List all students (display student_id, first name, last name, and employer) who live in Columbus, OH. Show the zip, state and city that have > 5 students as residents.
How was dr. snow able to test his proposed explanation : According to the "Answering the Three Questions" video, in what way was the "miasmas" (bad smells) explanation inconsistent and How was Dr. Snow able to test his proposed explanation?

Reviews

Write a Review

Chemistry Questions & Answers

  Explain how many calories are needed to increase temperature

Explain how many Calories are needed to increase the temperature of 10.0 grams of ice from 29.6 C to -19.6. Specific heat of ice is 0.48 cal/g C

  Explain formation of an acetal one mole of aldehyde requires

In the formation of an acetal one mole of aldehyde requires which of the following? a. one mole of alchol b. two moles of alcohol c. one mole of alcohol and one mole of water d. two moles of water

  Explain the conversion of methyl isonitrile to acetonitrile

For the conversion of methyl isonitrile to acetonitrile in the gas phase at 250 oC CH3NC CH3CN the following data have been obtained

  Explain the mass in grams of 4.12 moles of caco3

What is the mass in grams of 4.12 moles of CaCO3. How many moles are in 75.0g of CCl4

  Compute the number of moles cl of atoms

Calculate the number of moles Cl of atoms in 3.61×10^24 formula units of magnesium chloride,MgCl2

  Find the equilibrium concentrations

determine the equilibrium concentrations of all three compounds if the starting concentrations of both reactants are .00408 M, wiht [HOCl]=0.000 M.

  Explain liquid water at 12 celcius

How much energy in J must be added to 36.04g of solid water at -15 celcius degree to conver it to liquid water at 12 celcius

  Explain clear calcium hydroxide solution

When carbon dioxide is bubbled through a clear calcium hydroxide solution, the solution appears milky. write an equation for the reaction and explain how this reaction illustrates that CO2 is an acidic oxide. Remember to add the states of all reac..

  How many liters of h2 at 23.0c and 733mm hg are released

How many liters of H2 at 23.0C and 733mm Hg are released when 1.98g of Na reacts with unlimited water?

  Write a three pg paper describing windows printer model

Write a three pg paper describing Windows Printer Model for Server 2008. Discuss local vs. network printers and how to decide which to deploy. Has the development and deployment of network-based printers really saved the money they were suppo..

  Explain the chemical equation corresponding to ksp

Consider a saturated solution of calcium fluoride in 0.039 M potassium nitrate. Complete the following tasks, and then answer the question. Write the chemical equation corresponding to Ksp.

  A buffer was prepared by adding 24 g of ammonium nitrate

a buffer was prepared by adding 2.4 g of ammonium nitrate to 100.0 ml of 0.30 m ammonia kb 1.8 times 10-5. to this

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