Distributed Median problem - workdog的专栏 - 博客频道 - CSDN.NET
This equation says that there are a total of n elements in both A and B that are less than or equal to m. Note that m might be drawn from either A or B.
Because Alice and Bob live in different cities, they have limited communication bandwidth. They can send each other one integer at a time, where the value either falls within {0,…,n} or is drawn from the original A or B arrays. Each numeric transmission counts as a "communication" between Alice and Bob. One goal of this problem is to minimize the number of communications needed to compute the median.
Compute the combined median of A and B. Your algorithm should run in
Input:
Read full article from Distributed Median problem - workdog的专栏 - 博客频道 - CSDN.NET
No comments:
Post a Comment