| 
                  Binary Search Trees
                   An Introduction  | 
            
| 
                   
                      
                     Prof. David Bernstein
                       | 
            
| Computer Science Department | 
| bernstdh@jmu.edu | 
               
            
         
            
         
         
            
         Using a Linked Structure
               
            A preorder traversal of this BST will print the values in the nodes in the following order: 23, 15, 8, 12, 25, 24
A postorder traversal of this BST will print the values in the nodes in the following order: 12, 8, 15, 24, 25, 23
         
            
         
         
            
         
         
            
         
                     
         
            
         root
              the new node
                     
         
            
         
         
            
         null