Methods of Solving the Problems of the Seller in Order to Find the Optimal Solution for Economic and Legal Problems on the Internet for Export-Oriented Products Nataliya Boykoа, Lyubov Zaliznaа, Anna Starukhb, Yurii Kryvenchukа, Yuriy Malynovskyyа a Lviv Polytechnic National University, Lviv79013, Ukraine b Ivan Franko National University of Lviv, Lviv 79007, Ukraine Abstract In this paper will be considered several already existing algorithms for solving the problem of a travelling salesman. The purpose of this research is to assess the quality of each of the selected algorithms, compare and analyze the results. Mathematical implementations of “branch and bound” algorithms (Little's Algorithm), the closest neighbor of the Approx-TSP algorithm, i.e. the ant colony optimization algorithm, are included in the overview. The result of this study is a graph with the most optimal route and time of the algorithm. For algorithms that require special operating conditions, the matrix will be adapted and possible error will be taken into account. For the rest - the matrix will contain the same values for more accurate analysis. The article considers the approach of setting the parameters of the algorithm for solving the problems of a travelling salesman. For this purpose, the problem of the salesman and the problem of optimization of parameters on a final grid are formed. The algorithms and their parameters for which the settings will take place are determined. Also, an approach to adjust the parameters of the algorithm is formed. Keywords 1 Transportation task, Hamiltonian cycle, spanning tree, traveling saleslman problem, cycle, transcomputational problem, algorithm, reduction, algorithm parameters, parameter setting. 1. Introduction It is known that the result of any algorithm depends on the settings of its parameters. They can improve the accuracy of the solution, speed up the operation of the algorithm. Selection of parameters for algorithms is time consuming and may require an expert group to determine the best parameters of the algorithm [2, 9, 16] The travelling salesman problem is one of the most common combinatorial optimization problems, among a number of other optimization problems. Such problems, for example, include the search for optimal tourist routes, the multiple travelling officer’s problem and the optimization of the route for welding circuit boards. Applied combinatorial optimization algorithms are used to solve this problem. Almost all of them have some number of parameters [1, 5-8]. That is why the study of setting the parameters of algorithms to solve the problem of the travelling salesman is relevant. Hence, has to be developed an approach for setting the parameters of the algorithm for a wide range of tasks. The objective of the study is to develop a sufficient approach to increase the efficiency of applied algorithms of combinatorial optimization and test it in solving known problems of the salesman. GMiGIN’2020: 2nd International Workshop on Conflict Management in Global Information Networks, November 30, 2020, Lviv, Ukraine EMAIL: nataliya.i.boyko@lpnu.ua (N. Boyko); liubov.v.zalizna@lpnu.ua (L. Zalizna); anna.starukh@lnu.edu.ua (A. Starukh); yurkokryvenchuk@gmail.com (Yu. Kryvenchuk); inem.news@gmail.com (Yu. Malynovskyy) ORCID: 0000-0002-6962-9363 (N. Boyko); 0000-0002-7330-000X (L. Zalizna); 0000-0003-3282-1746 (A. Starukh); 0000-0002-2504-5833 (Yu. Kryvenchuk); 0000-0002-7139-5623 (Yu. Malynovskyy) ©️ 2020 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0). CEUR Workshop Proceedings (CEUR-WS.org) To attain this objective, it is necessary to complete the following tasks: • review the known results for combinatorial optimization algorithms in the field of parameter settings for the algorithm; • formalize the problem of finding the optimal parameters of the algorithm in a bounded grid; • to develop software implementation of combinatorial optimization algorithms, for which parameters will be set; • conduct experiments of setting the parameters of the algorithm for a set of tasks; • perform an analysis of the results of the experiment. The object of research - the processes of solving combinatorial optimization problems. The subject of research - models and methods of parameter setting of combinatorial optimization algorithms. The scientific novelty of the obtained results is the development of a formalized approach to setting the parameters of applied algorithms of combinatorial optimization, which allows to increase the accuracy of algorithm solution. 2. Materials and methods The traveling salesman problem was formed in the 30s of the twentieth century. This is one of the most popular combinatorial optimization problems. Its main idea is to find the most efficient route that would pass through the chosen cities with a return to the starting point. It is usually allowed to visit one city only once. Under this condition, the solution is among the Hamiltonian cycles. Many problems can be formulated on the principle of the traveling salesman problem. For example: transportation task, task of optimal creation of computer networks and so on. This task has a wide range of applications. Nowadays it can be applied in such areas as routing of transport flows, construction of algorithms for the study of grammatical structures, and most of the tasks used in the field of logistics [1, 5, 12]. There are many different approaches and methods that have been derived from theoretical calculations and research that can be used to solve the travelling salesman problem. The most effective methods, i.e. those that significantly reduce the full search, belong to the class of heuristic methods [3, 13]. The result of most of the existing methods is not the most profitable route, but only an approximation to it. You can view the following groups of methods for solving problems of the travelling salesman: 1) Ordered sampling: This method is also called - the method of "brute force". The essence of this method, to solve the problem is to search for all possible solutions. The complexity of such a sampling depends on the size of the problem to be solved. If the set of solutions is extremely wide, then the solution of the problem by ordered sampling can take not only several years, but also possibly centuries or millennia [4, 15]. 2) Random sampling : There are cases when the solution of the problem can be represented in the form of a sequential sample of solutions. If you form such a sample using a random mechanism, it can significantly reduce the time to find a solution. You only need to remember the "best option", i.e. the most optimal of the received. This approach is quite simple, but there is also a way to improve it. It is implemented by combining the local search method with a heuristic approach to random search. These methods are widely used in the formation of the schedule of airports, trains or in the scheduling of curriculum in schools and universities [11, 17-19]. 3) Greedy algorithms: Greedy algorithm is an algorithm in which we can assume that the local solution at each stage is optimal. These methods include the method of the nearest neighbor or the method of inclusion of the nearest city, the method of the cheapest inclusion. Also, the existing methods of solving the problems of the travelling salesman can be divided into exact and heuristic (approximate) [11-19]. Examples of exact methods: • Ordered sampling method • The branch and bound method Examples of heuristic methods: • The nearest neighbor method • Local improvements method • Monte-Carlo method (random sampling method) Exact algorithms use a complete and ordered sampling of all options. Sometimes they allow you to find a solution quickly, but usually the search goes through all n! routes, where n is the number of specified cities. The salesman's task is one of the transcomputational tasks - this means that if you set more than 66 points in the bypass route, the exact solution of this problem, even with the use of modern computers, can take a very long time [6, 10]. Approximate methods of solving the problem of the traveling salesman are heuristic and are quite effective, as they reduce the complete sampling of all the routes. Many of them find not the most effective but the basic route. In the future, this route is improving. 3. Statement of the problem In this paper, will be considered several existing algorithms for solving the problem of a travelingsalesman. The purpose of this research will be to assess the quality of each of the selected algorithms, compare and analyze the results. Therefore, the analysis will be performed on the following algorithms: 1) The branch and bound method (Little's Algorithm); 2) The method of the nearest neighbor; 3) Approx-TSP algorithm; 4) Ant colony optimization algorithm; The branch and bound method Little's algorithm is one of the special cases of applying the "branch and bound" method to solve a problem of a traveling salesman. The general idea is quite trivial: it is necessary to break down a huge number of options into individual groups and get their appropriate estimates (bottom - for the task of minimization, top - for the task of maximization) to be able to reject options not a single one but whole groups. The difficulty is to find the best division into groups (branches) and such estimates (bounds) that the division process is the most effective [11, 13]. Algorithm: 1. Row reduction method (in each row of the matrix find the minimum element dmin and subtract it from all elements of the corresponding row. Lower limit: H = ∑ 𝑑𝑚𝑖𝑛 2. Reduction operation on columns (in each row of the matrix find the minimum element dmin and subtract it from all elements of the corresponding column. Lower limit: H = H + ∑ 𝑑𝑚𝑖𝑛 3. The constant H is the lower limit for the set of all admissible Hamiltonian contours 4. Search for powers and zeros for the given matrix. To do this, replace the zeros in the matrix with a temporary sign and find the sum of the minimum elements of the row and column, which correspond to this zero 5. An arc (i; j) is selected for which the exponent of the zero element is maximal 6. The set of all Hamiltonian contours is divided into two subsets: which contain the selected arc (i; j) from point 5, and do not contain it - (i *; j *) 7. The matrix of Hamiltonian contours is reduced with the search of the reduction constants H (i; j) and H (i *; j *) 8. Compare the lower limits of the subsets of Hamiltonian contours H (i; j) and H (i *; j *). If H (i; j)