I need some help in coding an algorithm for 'traveling salesman problem'. It is similar to a graph problem. I dont know how to declare vertices, edges in graph and perform operations. Please tell me how i could use doubly linked lists for the same. Thanks!!
There are many methods that can be used to solve the TSP. Without knowing what you mean by `operations' or how your method will work, how do you expect us to answer your question?
My preferred heuristic is traversing the MST, but I doubt that's what you want.