I have n open geometric lines in 3D. which must be combined into one line, based on the criteria for the minimum length of additional lines between the end points of the lines. Please suggest an algorithm that has minimal complexity.
The most famous algorithm works in O (2 n ) time. As Andrew Said said in his comment, this is a more general version of the salesman problem. If you find the best algorithm, you will be awarded a prize of $ 100,000.
, . wikipedia.
Source: https://habr.com/ru/post/1776436/More articles:Disabling the default constructor for classes other than POD - c ++Can I set the focal length of the iphone camera programmatically? - iphoneBinding to a service from an action or starting a service in different processes? - androidelegant hierarchy of objects - javaКак сохранить потоки sysout и syserr от смешения? - javaFlex не распознает файл политики crossdomain.xml - web-servicesUsing GEO coordinates in C # to draw a map - c #variation on the cover - algorithmHow to set a condition in the grid snap field? - asp.netОбъекты поиска событий и словаря - cqrsAll Articles