开发者

Algorithm for connecting geometric lines

开发者 https://www.devze.com 2023-01-26 06:20 出处:网络
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. Plea

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

精彩评论

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