题目
题目

CPSC_V 320 201/202/203 2024W2 Reading Quiz #5 (Divide and Conquer 2)

单项选择题

In the merging step, the algorithm looks at the points that are inside a strip of width centered on line L. How many of the points can this strip contain?

查看解析

查看解析

标准答案
Please login to view
思路分析
First, let's restate what the question is asking: in the merging step of the closest-pair algorithm, we consider a strip of width centered on the dividing line L, and we want to know how many points this strip can contain. Option evaluation mindset: - If we think about the strip in the worst case, nothing in the problem statement restricts how many points can lie within that strip besides the total number of points in the input. Therefore, in the absolute worst case, the strip could contain all n points, since they could all lie within dist......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!