title: Running out of memory, any methods to dynamically recycle unneeded nodes of a tree?
body: <p>I'm running an algorithm that generates a <strong>huge</strong> tree, the <strong>least</strong> runnable result came out with 2,069,073 nodes, and took up 3gigs of memory.</p>
  
  <p>But that won't do!</p>
  
  <p>My question is, are there any good methods or practices to dynamically recycle any unneeded nodes when running?</p>
  
  <p>EDIT: "I'm running a multiprocessor scheduling algorithm with 2 machines and 10 jobs on each machine."</p>