I do not quite understand your questions:
You:
1) want to know how they work? try google, you will find many good applets that explain how algorithms and data structures work with simple animations.
2) want to see the behavior in your application, run the application in debug mode.
source share