Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

All the houses in the town SingleLongRoad are built sparsely along a single long road, which can be viewed as a long horizontal line segment

All the houses in the town SingleLongRoad are built sparsely along a single long road, which
can be viewed as a long horizontal line segment with houses being points on that line. The
residents of all these houses are enthusiastic users of mobile phones, and your task is to
build mobile phone base stations along the road, so that every house is within 6 kilometres
of one of these base stations; again you can view the base stations as points on the line
segment. We assume that a base station built at point p on the line covers all houses within
6 km to the left from p, and all the houses within 6 km to the right from p.
(i) Give an efficient algorithm that achieves this goal using the smallest possible number
of base stations. [6 marks]
(ii) Provide an argument as to why your algorithm indeed uses the minimum number of
base stations. [4 marks]
(b) Define the Fractional Knapsack Problem and the {0,1} Knapsack Problem. Be sure to
explain their similarities and differences. [4 marks]
What is the name of the general solution method that we can use to solve the Fractional
Knapsack Problem, and what is the different solution method that we can use to solve the
{0,1} Knapsack Problem? [2 marks]
Briefly describe a procedure for solving the Fractional Knapsack Problem. (No pseudo-
code is necessary, just a short description in words will suffice.)
[4 marks]
PAPER CODE COMP202 page 5 of 6 Continued

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

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions