Question

As you can see, there are 12 blank squares that denote distances between each of the eight nodes (that is, the boxes with letters in them). Use each of the following numbers to create your own model, then solve it using the minimal spanning tree technique:

2


5


6


11


3


3


7


7


7


4


6


9

Step 1 (10% of grade): Place each the numbers (above) in one of the blank squares. There is no rhyme or reason to it: just place them. You should have no numbers left over and no empty squares.


Step 2 (40%): Use the minimal spanning tree technique (covered in your handout and in your notes) to find the smallest sum that allows you to connect all of your nodes (the squares with the letters in them).  


Step 3: (30%) What paths did you choose? List them for me.


Step 4: (20%) What is the sum of your solution? Tell me. VIP: It is NOT 70 (that is the value of all 12 numbers, and is not the solution).


il 44%9:28 AM 2015-07-28 REP...del v3 blanks V2 - Read-only Read Only - You cant save changes to t... Numbers for the graph:

Thank you for the help!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Step 1

Let us place the numbers as shown below

N 00 6 A C 11 5 3 D 3 7 E 7 7 F 6 H 4 9 G

Step 2

An approach to get the minimum spanning tree of a graph is -

  • first remove all edges from the graph
  • place all the edges on a priority queue arranged by their weight (lowest weights first)
  • deque each edge from the queue and add it to the graph only if the edge's end points are not connected. Otherwise skip the edge.

So in our case, queue would contain edges as below

[ AB(2), BE(3), CE(3), FG(4), AD(5), BC(6), FH(6), DE(7), EF(7), EH(7), GH(9), BD(11) ]

After dequeing each edge and adding to the graph / skipping, we see the minimum spanning tree as below

2 B A C 5 3 D 3 E 7 F 6 H 4 G

Step 3

Edges that are in our minimum spanning tree are -

AB, AD, BE, CE, EF, FG, FH.

Step 4

Smallest Sum = 2 + 5 + 3 + 3 + 7 + 4 + 6 = 30

Add a comment
Know the answer?
Add Answer to:
As you can see, there are 12 blank squares that denote distances between each of the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Imagine your 2d vector is a chess board with alternating squares of white and black (...

    Imagine your 2d vector is a chess board with alternating squares of white and black ( google for chess board if you don't know what one looks like ). Write a method whiteMinusBlackSquares( vector<vector<int>> numbers ) that returns an integer. return the sum of all values 'on' white squares minus the sum of all values 'on' black squares. For example, the top left (0,0) square is white. If I pass a vector<vector<int>> of { 1, 2, 3, 4 }, {5,...

  • The manager of a travel agency asked you to come up with a forecasting technique that...

    The manager of a travel agency asked you to come up with a forecasting technique that will best fit to the actual demand for packaged tours. You have observed and recorded the actual demand for the last 10 periods. You also identified two possible techniques for consideration: 2-month moving averages (F1), and exponential smoothing (F2) with a smoothing constant of 0.40. Using Cumulative Forecasting Error (CFE) and Mean Absolute Deviation (MAD) as your performance measures you will determine the technique...

  • Write a complete Java program, including comments in both the main program and in each method,...

    Write a complete Java program, including comments in both the main program and in each method, which will do the following: 0. The main program starts by calling a method named introduction which prints out a description of what the program will do. This method is called just once.      This method is not sent any parameters, and it does not return a value. The method should print your name. Then it prints several lines of output explaining what the...

  • 28 40 25 40 41 15 3. A farmer would like to investigate the relationship between...

    28 40 25 40 41 15 3. A farmer would like to investigate the relationship between the obtained yield of apple trees and the amount of weeds found in their roots. For this reason, nine apple trees of the same type were randomly selected and the amount of weeds in their roots (7 grams) was recorded together with their yield (y kilograms). Year #1 #2 #3 #4 #5 #6 #7 #8 #9 #10 Weeds in roots (2) 30 32 25...

  • Tree Plot Please write a Java program to print or plot a binary tree in a 2-dimensional character format. You are not...

    Tree Plot Please write a Java program to print or plot a binary tree in a 2-dimensional character format. You are not allowed to use any existing Java classes such as ArrayList or Vector or Tree.    Your program must define 3 binary trees as follows. Each tree is defined in an integer 16 x 3 array. Programming Techniques: (1) The array for the binary tree can be integer data type with 16 rows by 3 columns. Please always make index...

  • Tree Plot Please write a Java program to print or plot a binary tree in a 2-dimensional character format. You are n...

    Tree Plot Please write a Java program to print or plot a binary tree in a 2-dimensional character format. You are not allowed to use any existing Java classes such as ArrayList or Vector or Tree.    Your program must define 3 binary trees as follows. Each tree is defined in an integer 16 x 3 array. Programming Techniques: (1) The array for the binary tree can be integer data type with 16 rows by 3 columns. Please always make index...

  •    MTH 157 Mon, .July 23, 2018 PROBABILITY TEST 4 COUNTING TEOedaesao You must use pencil,...

       MTH 157 Mon, .July 23, 2018 PROBABILITY TEST 4 COUNTING TEOedaesao You must use pencil, erase clearly, be neat and onderty. Yeu must show your steps. What numbers are you using and how are you using them to get your answers. Dem just give m. on.???. Iwill count it totally wrog Allu ers must b. spp ed by your work. Your work must be orgonized so that I can understand how you get from one step to another step....

  • You are given a binary tree of the form: Each node in the tree has a...

    You are given a binary tree of the form: Each node in the tree has a left child and a right child. Each of the children will be extended as a linked list. Every node has the following attributes: key, left node, right node, and next node. The next node allows a node, that is a part of the tree, to be extended as a linked list. The diamonds represent the next nodes, which are part of the linked list...

  • File Edit Format View Help Graphs and trees 4. [6 marks] Using the following graph representation (G(V,E,w)): v a,b,c,d,e,f E fa,b), (a,f),fa,d), (b,e), (b,d), (c,f),(c,d),(d,e),d,f)) W(a,b) 4,...

    File Edit Format View Help Graphs and trees 4. [6 marks] Using the following graph representation (G(V,E,w)): v a,b,c,d,e,f E fa,b), (a,f),fa,d), (b,e), (b,d), (c,f),(c,d),(d,e),d,f)) W(a,b) 4,W(a,f) 9,W(a,d) 10 W(b,e) 12,W(b,d) 7,W(c,d) 3 a) Draw the graph including weights. b) Given the following algorithm for Inding a minimum spanning tree for a graph: Given a graph (G(V,E)) create a new graph (F) with nodes (V) and no edges Add all the edges (E) to a set S and order them...

  • C++ Magic Squares. An n x n matrix that is filled with the numbers 1,2,3,…,n2 is...

    C++ Magic Squares. An n x n matrix that is filled with the numbers 1,2,3,…,n2 is a magic square if the sum of the elements in each row, in each column, and in the two diagonals is the same value. The following algorithm will construct magic n x n squares; it only works if n is odd: Place 1 in the middle of the bottom row. After k has been placed in the (i,j) square, place k+1 into the square...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT