After reading about splay trees here:
http://en.wikipedia.org/wiki/Splay_tree, I decided to implement one to get a better sense of them. My splay tree class in ruby effectively implements an Integer indexed Array externally but internally it stores the values in a linked structure. The tree implementation itself is in the the tree.rb. Since I really wanted to see the structure of these trees, I made a script that runs a few random operations on a tree taking graphviz "snapshots" of the structure throughout the process then compiles the resulting images into a simple JQuery app. The script can be run at the command line with: