Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

How to solve Hamiltonian Path?

  • 18-10-2009 7:09pm
    #1
    Closed Accounts Posts: 267 ✭✭


    I have an unweighted undirected graph. I'm trying to determine how to find a path that visits each vertex only once, starting from a given vertex.

    From what I understand, this is referred to as a Hamiltonian Path yes? But I can find no algorithm that will help me find one...

    Any help appreciated, thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 2,763 ✭✭✭Sheeps


    Brute force it. Hope your graph isn't too big.


  • Registered Users, Registered Users 2 Posts: 2,481 ✭✭✭Fremen


    This is an NP complete problem. The only way to deal with it is to brute force it.


Advertisement