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

  Various successful project manager characteristics

Of the various successful project manager characteristics, pick one.  Why do you think it is important?

  First argument of the function

Implement the given function above. The first argument of the function is a vector of "v" integers and the second argument is an integer "k". The function returns the number of times "k" occurs in "v".

  Assume that the nrzi signal starts out low

Show the NRZ, Manchester, and NRZI encodings for the bit pattern shown in Figure 2.46. Assume that the NRZI signal starts out low.

  Makeany dfa in jflap software and run for several inputs

Makeany DFA in JFLAP software and run for several inputs. Take a screen shot andinclude in your assignment. Keep in mind that this assignment is meant to makeyou all get familiar with this software.

  Find a recurrence relation for the number

Find a recurrence relation for the number of bit strings that contain the string 01 . what are the initial condition , and how many bit strings of length seven contain the string 01. please explain it fully step by step to better undestand

  International lease

For this week's Case, you have an issue dealing with an international lease. The lease is from the U.S. parent company, to a UK subsidiary.

  Exclaim that accepts a single parameter in a register

The subroutine should scan the string beginning at address STRNG and replace every occurrence of a period (‘.') with an exclamation mark (‘!').

  Project life cycle model to create game plan

Explain in scholarly detail how you would apply project life cycle model to create a game plan for developing different project.

  Investments in government securities

A superannuation fund can earn j1 = 10% p.a.with investments in government securities. Determine which of the following investments the fund should accept if the initial investment required is $100,000 in each case.

  Register and combinational logic

Terminal count output tc should be 1 only when the 4-bit counter output is 1111. Thecounter rolls over to 0000 after 1111 (if cnt is asserted for counting up). After deriving thecontroller's FSM, implement the controller as a state register and co..

  Compare the types of computers

compare desktop and laptop, Introduce this two type of computer to the audience.

  Design a network using either a single lan

Green foods has 5 canteens and each canteen has a manger and an assistant. Each staff will be assigned a PC and all PC will be linked together and have internet access. Design a network using either a single LAN, 5 LANs or 5 VLANs? Present all yo..

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