1.

Chan’s algorithm is used for computing _________(a) Closest distance between two points(b) Convex hull(c) Area of a polygon(d) Shortest path between two pointsI got this question during an interview.The question is from Computational Geometry topic in section Computational Geometry of Data Structures & Algorithms II

Answer»

Correct choice is (b) Convex hull

The best I can EXPLAIN: Chan’s algorithm is an output-sensitive algorithm USED to compute the convex hull set of n POINTS in a 2D or 3D space. CLOSEST pair algorithm is used to compute the closest distance between two points.



Discussion

No Comment Found

Related InterviewSolutions