the nodes in the graph are implicit. i start with a vector of integers and depending on the conditions of the question i perform some operations on this initial vector and these new vectors become nodes in my graph too. i can't figure out how to mark these nodes as visited.
On Sun, Aug 5, 2012 at 11:48 PM, jalaj jaiswal <jalaj.jaiswa...@gmail.com>wrote: > Can you give proper data structure used to represent graph in your case ? > > On Wed, Aug 1, 2012 at 9:42 PM, harsha <harshacoo...@gmail.com> wrote: > >> hello all, >> i was recently trying to solve a BFS problem where each node is >> represented by a different arrangement of elements in an array but am >> unable to come with a data structure to keep track of the visited nodes. >> generally nodes are different strings so we can just use map and set >> visited nodes to 1 but what can i use in the above case? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/algogeeks/-/anThAhS9D8sJ. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > Regards, > > Jalaj Jaiswal > Software Engineer, > Zynga Inc > +91-9019947895 > * > * > FACEBOOK <http://www.facebook.com/jalaj.jaiswal89> > LINKEDIN<http://www.linkedin.com/profile/view?id=34803280&trk=tab_pro> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.