Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q 1 ( 2 0 points ) . Let G = ( V , E ) be a connected, undirected graph with real number edge
Q points
Let be a connected, undirected graph with real number edge weights. Also assume that all edge weights are distinct.
a pts Does the minweight edge of have to be on Minimum Spanning Tree MST of
b pts Can the maxweight edge of belong to MST
c pts Adding the same positive value to every edge of can change MST or not?
d pts Adding the same positive value to every edge of can change shortest path between two vertices or not?
For all question above, do not leave your answer as YES or NO Discuss the situation with examples by drawing simple graphs If you can, prove your answer by contradiction or counterexamples. For some questions, answer may change at different conditions. If so please discuss the answer separately for all different cases.
Q points
Remember the rod cutting problem, the following is an instance of it:
tablelength price
a pts Define the density of a rod of length to be pli, that is value per inch. A greedy strategy for cutting a rod of length cuts first the piece with the highest density.
b pts Show by a counterexample at least for one that this greedy strategy does not always determine an optimal way to cut rods.
Q points
a pts Build an AVL tree after successively inserting the keys: Show and explain every iteration.
b pts Traverse the tree you build inorder, preorder, and postorder.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started