Question: 7. Optional extra credit: flash mob! You've accepted a summer internship at a startup that's making a new flash mob app. Here's how it

7. Optional extra credit: flash mob! You've accepted a summer internship at a startup that's making a new flash mob app. Here's how it works: Given n people in the plane, the app will periodically convene a flash mob of size k, where k is some constant. The objective is to find a size-k subset of the n people so that the sum of the pairwise distances between those k people is as small as possible. In other words, given a set of n points, we wish to find a subset P of exactly k points that minimizes the sum p,qep d(p,q), where d(.,.) denotes the Euclidean distance. Give an O(nlogn)-time algorithm for this problem. Solution:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
