Traveling Salesman Problem (TSP): Firefly Algorithm

Great Essays
Traveling Salesman Problem (TSP) is one of combinatorial optimization problems. X TSP is NP-hard problem which defined as a set of cities and each city should be visited once with minimum tour length. This paper solved this problem using Firefly Algorithm (FA) and k-means clustering by three steps: cluster the nodes, finding optimal path in each cluster and connect the clusters. The first step is to divide all nodes into sub-problems using k-means clustering, the second step is to use FA to find optimal path in each cluster, finally connect all clusters and find the path between them. The experimental results show that FA with k-means clustering has better results than ant colony algorithm using clustering and FA in most of instances.
Keywords— Traveling Salesman Problem; Firefly Algorithm; k-means Clustering; NP-hard Problem
I.
…show more content…
INTRODUCTION
Traveling Salesman Problem (TSP) is a classical combinatorial optimization problem, easy to describe but hard to solve. TSP consists of salesman and N cities, the goal of this problem is to visit each city by the salesman once with minimum tour length. The challenge in TSP is to find the route that has minimum distance. TSP can be presented via complete graph as follows: G = (V, E). Where V is the set of vertices which is equal to the number of cities and E is the set of edges between cities, each edge assigned the distance between any two cities

Related Documents

  • Improved Essays

    Q-Flies Case Study

    • 153 Words
    • 1 Pages

    Q-flies are currently released as a bisexual strain in SIT programmes. The impact of released males can be greatly diluted by the presence of millions of sexually receptive sterile females, and this has been recognized as a potential limit on the efficacy of SIT. As there is no genetic sexing strain available for Q-fly, and so both males and females would be treated with methoprene prior to field release. If methoprene accelerates sexual maturation in Q-fly females, then these sterile females will mate with the sterile males, reducing the chances that the sterile males attract and mate with wild fertile females. However, if methoprene accelerates maturation in males more than in females, then this treatment could act similar to that of a genetic…

    • 153 Words
    • 1 Pages
    Improved Essays
  • Improved Essays

    A global trend that seems to impact every country in the world one way or another seems to be urbanization. Worldwide the idea of living in a big booming is becoming more and more popular. Cities mainly appeal to people as social, commercial, and political hubs. Their allure also comes from the unique culture that every city has. Although seeming glamorous, there is a dark side of urban life.…

    • 796 Words
    • 4 Pages
    Improved Essays
  • Superior Essays

    Firefly Research Paper

    • 1954 Words
    • 8 Pages

    Firefly: The Best of both Worlds Popular culture introduces individuals to communities, heck it helps create communities. Think about the TV shows and the bands you like, you are drawn to others who also enjoy those things, right? Just like fables and fairytales, shows like Firefly, the Simpsons, Parks and Rec, or Avatar bring people together through common interests and viewings. TV shows and movies have created huge communities around them and have given people who are literally across the world a way to connect and engage with each other. And if that’s not beautiful then I don’t know what is!…

    • 1954 Words
    • 8 Pages
    Superior Essays
  • Improved Essays

    Morgan Case Study

    • 510 Words
    • 3 Pages

    In the Morgan article provides an interesting case study on how an archaeologist can use a GIS-based spatial analysis to reconstruct a prehistoric foraging radii to determine different foraging behaviors. The main idea that Morgan presents throughout the article is the concept of the foraging radius. The term foraging radius refers to the daily distance hunter gatherers travel from residential bases. Residential bases may include place where hunter gatherers sleep and places where their family and/or large social group resides to obtain food and other resources for survival. Even though information on the foraging radius is available through ethnographic data, it is still exceedingly difficult to identify a prehistoric foraging radius.…

    • 510 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Firefly Research Paper

    • 1863 Words
    • 8 Pages

    I have made it my duty to know if a show will be garbage before or after it comes out. There have been many TV shows that I have loved, but have failed due to the studio taking a huge deuce on it because of timing, bad advertising, bad writing and bad planning. One example of such a great show is the sci-fi western Firefly. It holds a special place in my heart because it was so different, and it blended old timey western elements with futuristic space opera themes. It was cancelled after 13 episodes, but managed to get a movie to wrap up storylines titled Serenity.…

    • 1863 Words
    • 8 Pages
    Improved Essays
  • Decent Essays

    Chi square calculation (experimental data, not control data): x2 = (28 - 29)2/29 + (30 - 29)2/29 = 1/29 +1/29 = 2/29 = 0.0690 0.069 < 3.834, assuming p = 0.05 The null hypothesis should be accepted. Analysis: We are unable to reach a conclusion regarding the effect of light on the fruit flies’ behavior.…

    • 242 Words
    • 1 Pages
    Decent Essays
  • Decent Essays

    I believe that the red fire ants are the most harmful species. They take over everything. They eat animals that we need to eat. The red fire ants take over lots of land so we can not use the land are play on the land. The most harmful invader species is red fire ants because there are lots of them invading and killing lots of animals.…

    • 291 Words
    • 2 Pages
    Decent Essays
  • Great Essays

    As the major reason for using express mail for people and businesses was the need of urgent delivery, 3% rate of parcels being delivered late can be still considered high. Airborne will need to improve reliability of its services by investing more in automatization of its operations. Airborne’s website lacked several functions compared to the ones of its rivals. Although Airborne’s website could be used for tracking a shipment, customers could not create papers needed for shipping or schedule pickups. The company should consider adding the mentioned services to its…

    • 1609 Words
    • 7 Pages
    Great Essays
  • Improved Essays

    Problem Based on Approach…

    • 470 Words
    • 2 Pages
    Improved Essays
  • Superior Essays

    The Firefly Hunt Analysis

    • 1032 Words
    • 5 Pages

    Experiences and people influence the way we see life. While some people perceive their world in a different way, others accept the world presented to them. There are people who dream and see the world as fantasy; everyone has different ideas and thoughts because of their experiences. Jacey Choy’s “Red Cranes” and Jun’ichiro Tanizaki’s “The Firefly Hunt” are two different short stories which center around the idea of a child’s imagination. For Mie, she is a realist.…

    • 1032 Words
    • 5 Pages
    Superior Essays
  • Improved Essays

    The Firefly Hunt Analysis

    • 736 Words
    • 3 Pages

    Jacey Choy and Jun’ichiro Tanizaki, authors of “Red Cranes” and “The Firefly Hunt,” respectively, both write about characters similar in age, personality, and culture; however, the authors take different approaches in developing and presenting their characters to the reader. While their characters share a youthful, energetic, and curious personality, Choy and Tanizaki use several different methods to develop such characters over the course of their stories. While Choy uses Mie’s interactions with supporting characters to develop Mie’s characters, Tanizaki instead focuses on Sachiko’s feelings, worries, and thoughts. In “Red Cranes,” Choy’s description of Mie’s interactions with her father and mother form the basis of her character development.…

    • 736 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Narrators in stories “Red Cranes” by Jacey Choy and “The Firefly Hunt” by Jun’ichiro Tanizaki share a similar theme of coming of age. The two stories characters have aspirations to become something more than they currently are in the setting of the story. Mie is portrayed through her interactions with her father and mother and through her feelings relative to the red cranes and future aspirations. Poetry is also a mentioned hobby for Mie, however, this is not the overall objective of the story. Mie’s father has respect for her and her hopes of seeing the red cranes as he promises to fulfill her wish to wake her up at the first sighting.…

    • 320 Words
    • 2 Pages
    Improved Essays
  • Improved Essays

    Scheduling Defing

    • 886 Words
    • 4 Pages

    1. Identify an enjoyable educational activity. It could be participating in a play, completing a science experiment, playing an instrument, or something else. Use specific details and examples to explain why the activity is enjoyable. 2.…

    • 886 Words
    • 4 Pages
    Improved Essays
  • Great Essays

    Fedex Case Study

    • 1784 Words
    • 8 Pages

    Merge-in-transit helped CISCO to respond quickly to the customer s orders without having to have huge inventory. Total operating costs reduced for Cisco through these services. New SCM Services Recommendations Fedex has established itself has leader in shipping, logistics, warehousing and inventory management related services. Through their experience they can move up the supply chain and manage the collaborative demand management services thereby to receive, plan and execute a customer demand from a specific and optimal location and then finally ship it to the respective…

    • 1784 Words
    • 8 Pages
    Great Essays
  • Improved Essays

    The Importance Of Supply Chain Management

    • 888 Words
    • 4 Pages
    • 4 Works Cited

    Short distance can take the route of trucking, packaging and a great example of this is Wal-Mart "hub and spoke" system where the hub was the distribution centers and the "spoke" was the local stores. Same way Wal-Mart revolutionized the supply chain system, Amazon's futuristic drone delivery is looking very promising. The long distance shipment takes the route of railroad, air, package water, and pipeline. The rail is used for long distance, bulk items, and slower process compared to trucking. Trucking is for getting from point A to B to point C.…

    • 888 Words
    • 4 Pages
    • 4 Works Cited
    Improved Essays