开发者

Algorithm for connecting geometric lines

I have n open geometric lines in 3D. which need to be joined into a single line based upon the criteria开发者_运维技巧 that minimum length of additional lines between the end points of the lines. Please suggest algorithm which have minimum complexity.


A best known algorithm runs in O(2n) time. As Andrew Said in his comment, this is a more general version of traveling salesmen problem. If you find a better algorithm you'll be awarded a $1000000 prize.

You should try approximated solutions instead, see wikipedia.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜