Skip to content

Glossary: Data Structures and Algorithms in Java

visited set

Also written: visited, seen set

The set of places a search has already reached, so none is handled twice and loops do not run forever.

Where the book teaches it

Related terms

BFS (breadth-first search)DFS (depth-first search)HashSetcameFrom