This paper presents the results of an analysis of three algorithms for the Travelling Salesman Problem (TSP). The basic steps of genetic algorithms (GAs) and their benefits in solving combinatorial optimization problems are also presented. Moreover, several studies related to TPS and some approaches to its solution are discussed. An optimized version of the standard recursive algorithm for solving TSP using the backtracking method is presented. This algorithm is used to generate optimal solutions concerning the studied graphs. In addition, a standard genetic algorithm for solving TSP and its modification are also presented. The modified algorithm uses the genetic operator mutation in a different way. The results show that the recursive algo...