Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION - 2 Design of a network: Suppose that you are wiring a building so that all the rooms are connected via bidirectional communication wires.

QUESTION-2
Design of a network: Suppose that you are wiring a building so that all the rooms are
connected via bidirectional communication wires. Suppose that you can connect any two rooms
at the cost of the wire connecting the rooms, which depends on the specifics of the building
and the rooms but is always a positive real number. We can represent the possible connection
between rooms as a graph, where vertices represent rooms and weighted edges represent
possible connections along with their cost (weight). To minimize the cost of the wiring, you
could find a minimum spanning tree of the graph.
Design an algorithm to minimize the cost of the wiring for the network and also analyze the
algorithm by giving the results using order notation.
QUESTION-3
A thief breaks into a store and wants to fill his knapsack of capacity K with goods of as much
value as possible. The thief's knapsack can hold 100gms and has to choose from:
30 gms of gold dust at Rs 1000gm
60 gms of silver dust at Rs 500gm
30 gms of platinum dust at Rs 1500gm
a) Find what is the maximum possible solution to get more profit
b) Design greedy algorithm that finds the optimal solution for the given problem.
c) Is the solution return using b algorithm is it optimal? Justify
d) Analyze your algorithm and give the results using order notation.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

5. Identify three characteristics of the dialectical approach.

Answered: 1 week ago

Question

How to solve maths problems with examples

Answered: 1 week ago

Question

Question What is a Roth 403 (b) plan?

Answered: 1 week ago