Quantcast
Viewing latest article 2
Browse Latest Browse All 31

Parallel algorithm to solve a Hamiltonian Path problem variation (Travelling Baseball Fan) (Alina N. Ciorogar )

  • courseware
  • CS1
  • Fundamental Algorithms
  • Graph Algorithm Examples
  • Travelling salesman
  • Hamiltonian Cycle
  • graph
  • iterative search
  • Microsoft Visual Studio
  • C Sharp
  • NET
  • The included source code implements a variation of the Hamiltonian Path problem, called the Travelling Baseball Fan Problem, as described in the included problem description text file. The code first determines if a Hamiltonian cycle exists in the input graph. If so, a search for a schedule is done with an iterative backtracking search. For parallelization, threads divide up the iterations of the schedule search. The parallelization was done with C# threads. The code was intended for Windows OS and includes Microsoft Visual Studio solution and project files to build the application.

    DISCLAIMER: This code is provided by the author as a submitted contest entry, and is intended for educational use only. The code is not guaranteed to solve all instances of the input data sets and may require modifications to work in your own specific environment.

    There are downloads available under the Creative Commons License license. Download

    Viewing latest article 2
    Browse Latest Browse All 31

    Trending Articles