Does the engineer''s algorithm work for this case

Assignment Help Basic Computer Science
Reference no: EM131229736

A cable company must use cables to connect 15 homes together so that every home is reachable by every other home. The company has estimated the costs of different cable routes (Figure 1-5 shows the numbers associated with each link). One engi- neer provides an algorithm, shown in Figure 1-5, that will find the cheapest set of routes to pick. Does the engineer's algorithm work for this case? Why or why not?

Engineer's Algorithm:

a. Pick one cable route with the lowest cost not already picked. Add this route to the set of cheapest routes.

b. Check if every house is connected to every other house through any series of cables. If it isn't, go back to step 1. If every house is connected, then the cheapest set of routes has been found.

813_3482de74-5c90-4636-ba0f-177f8dbf76b2.png

Reference no: EM131229736

Questions Cloud

Evaluate some of the strategies for dealing with emotion : Evaluate some of the strategies for dealing with emotion in negotiation. Does emotion delay the negotiation process, or prevents parties from reaching an agreement? Why or why not?
How do you feel about convincing your boss : How would you conduct training if your team was not the lead agency in a homeland security environment? Explain - Is it important to implement NIMS and ICS concepts into everyday issues that are associated with emergency management? Why or why not?
Future of human resource management : Describe what you think the future of human resource management will look like. Please include all sources use. 1-2 pages is ok for this assignment.
Explain the evaluation process from beginning to end : Explain the evaluation process from beginning to end, and describe how you can be sure a childhood obesity prevention program will work by including an evaluation component. What is the most important element of evaluation and why do you believe th..
Does the engineer''s algorithm work for this case : Check if every house is connected to every other house through any series of cables. If it isn't, go back to step 1. If every house is connected, then the cheapest set of routes has been found.
Explain team building stage depict in twelve angry men movie : Describe the team building stages depicted in the 12 Angry Men movie. Was there evidence that the group moved fully through the stages of group development? Give examples, if any, of forming, storming, norming, performing, and adjourning.
Training and development in an aviation or aviation : Research paper should be written on a subject related to employee training and development in an aviation or aviation related industry (if possible) that requires scholarly inquiry and substantiation or support of an argument or proposition.
Advantages and disadvantages of approach : Costco has a policy of not hiring business school graduates because it wants employees to start at the bottom and work their way up. What are the advantages and disadvantages of this approach?
Design a total compensation plan for an organization : Write a 700- to 1,050-word paper (in third person voice), in which you design a total compensation plan for an organization focused on internal equity and a total compensation plan for an organization focused on external equity.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What can be the b2b e-commerce

What can be the B2B e-commerce in any organization/workplace/etc?

  What is a minimal set of functional dependencies

What is a minimal set of functional dependencies?

  Customer with attributes customerid

TNB electric want to create a database with the following entities- Customer with attributes CustomerID, CName, CAddress(Street, City, State, ZipCode) and CTelephone- Location with attributes LocationID, Address (Street, City, State, ZipCode) and Typ..

  What security threats from social networking

What security  threats from social networking  also apply to other businesses? Which do not? Why do you think so?

  Prove that s has infinite cardinality

1. Suppose that S is the set of all strings of one or more a's and b's. For example, S contains the strings "a", "b", "aa",  "ab", "ba", "bb",  "aaa",  "aab"  ..., etc.

  Use a recursive function, instead of nested for loops

Write a C program that will prompt the user to enter an integer and then it will print on the screen all the binary numbers of length n, where n is the integer variable inserted by the user.

  Restricted domain and range for function

The function C (x) = 25x + 80,000 express the total cost C (x) (in K£) of manufacturing x units of a product. If the maximum number of units which can be produced equals 20,000, state the restricted domain and range for this function

  Strong understanding of polymorphic variables

In a recent task that Sam had you complete, he noticed that you struggled with Polymorphic Variables. Just to make sure that you have a strong understanding of Polymorphic Variables

  Derive the general formula

Using {1, -1} set of bits to generate chipping codes, how many distinct codes can be generated for N users to share the same frequency under the CDMA modulation technique? (Hint: Derive the general formula for k-bit coding, such that N = f(k))

  Why is bit order then not relevant to presentation

[Pos81] defines (in its Appendix B) the standard network bit order. Why is bit order then not relevant to presentation formatting?

  Draw an rea diagram-data modeling and database design

Data modeling and database design,  Draw an REA Diagram,  Draw an REA diagram for Sparky’s revenue cycle only. Be sure to include cardinalities. State any assumptions you had to make.

  Create a pivot table, an active surveillance, in excel

Create a pivot table, an active surveillance, in Excel to identify adverse events related to flu vaccine. I need to come up with a background information, indicate the goals of the surveillance and data management then decide what information you ..

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