一维螃蟹潜艇的最优一致性
On the optimal consensus of crab submarines in one dimension
摘要:
我们考虑的问题,计算一组N螃蟹潜艇的最佳会合点。首先,我们分析的情况下,潜艇被允许的任何位置上的真正的线:我们提供了一个建设性的最优性证明,我们用它来提供一个线性时间算法来找到最佳的交汇点排序的起始点的情况下。其次,我们使用的连续情况下的结果来解决的情况下,螃蟹潜艇被限制在整数位置:我们表明,给定相应的连续问题的解决方案,我们可以找到最佳的整数解在线性时间。
英文摘要:
We consider the problem of computing the optimal meeting point of a set of N crab submarines. First, we analyze the case where the submarines are allowed any position on the real line: we provide a constructive proof of optimality and we use it to provide a linear-time algorithm to find the optimal meeting point for the case of sorted starting points. Second, we use the results for the continuous case to solve the case where the crab submarines are restricted to integer locations: we show that, given the solution of the corresponding continuous problem, we can find the optimal integer solution in linear time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。