I have been reading this question for reference: Graph Search vs Tree Search
One of the commenters made this comment which is exactly the situation I am facing.
"It is more formal to say that a 'single state' could be visited multiple times by a tree search, and NOT a node. As every node in search tree corresponds to a single path along the state space graph and is visited at most once by tree searches."
My search algorithm is generating nodes that are identical to ones already in the search tree. What is the best way to detect that this newly generated state is already present, so i can avoid going into the infinite loop? I cannot use a closed list, and need to do cycle detection for DFS. What is the best way to do this? This is from an assignment question in an AI course that I am doing for practice.It is not for submission. I am building the agent just out of curiosity. Any help is appreciated