Author |
Topic: Polygon (Read 562 times) |
|
gotit
Uberpuzzler
Gender:
Posts: 804
|
You are given cordinates of n points on a plane and you are asked to draw a polygon through some or all of these points such that no point lies outside the polygon.What algorithm should be used?Also,the polygon should have the minimum number of sides possible.
|
|
IP Logged |
All signatures are false.
|
|
|
Aryabhatta
Uberpuzzler
Gender:
Posts: 1321
|
|
Re: Polygon
« Reply #2 on: Aug 31st, 2007, 11:34pm » |
Quote Modify
|
Convex Hull is probably the intent, but the wording makes it seem like finding a triangle passing through one of the points will do, which i guess can be done on O(n) time.
|
|
IP Logged |
|
|
|
|