Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Youre helping to organize a class on campus that has decided to give all its students wireless laptops for the semester. Thus there is a

Youre helping to organize a class on campus that has decided to give all its students wireless laptops for the semester. Thus there is a collection of n wireless laptops; there is also have a collection of n wireless access points, to which a laptop can connect when it is in range. The laptops are currently scattered across campus; laptop e is within range of a set S~ of access points. We will assume that each laptop is within range of at least one access point (so the sets S~ are nonempty); we will also assume that every access point p has at least one laptop within range of it. To make sure that all the wireless connectivity software is working correctly, you need to try having laptops make contact with access points in such a way that each laptop and each access point is involved in at least one connection. Thus we will say that a test set T is a collection of ordered pairs of the form (e, p), for a laptop e and access point p, with the properties that (i) If (LP) ~ T, then e is within range ofp (i.e., p ~ Se). (ii) Each laptop appears in at least one ordered pair in T. (i~) Each access point appears in at least one ordered pair in T.

This way, by trying out all the connections specified by the pairs in T, we can be sure that each laptop and each access point have correctly functioning software. The problem is: Given the sets Se for each laptop (i.e., which laptops are within range of which access points), and a number k, decide whether there is a test set of size at most k. Example. Suppose that n = 3; laptop I is within range of access points 1 and 2; laptop 2 is within range of access point 2; and laptop 3 is within range of access points 2 and 3. Then the set of pairs (laptop 1o access point 1), (laptop 2, access point 2), (laptop 3, access point 3) would form a test set of size 3. (a) Give an example of an instance of this problem for which there is no test set of size n. (Recall that we assume each laptop is within range of at least one access point, and each access point p has at least one laptop within range of it.) (b) Give a polynomial-time algorithm that takes the input to an instance of this problem (including the parameter k) and decides whether there is a test set of size at most k.

What are the answers to A and B

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

Step: 3

blur-text-image

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago