title: data structure to support lookup based on full key or part of key
body: <p>I need to be able to lookup based on the full key or part of the key..</p>
  
  <p>e.g. I might store keys like 10,20,30,40 11,12,30,40, 12,20,30,40</p>
  
  <p>I want to be able to search for 10,20,30,40 or 20,30,40</p>
  
  <p>What is the best data structure for achieving this..best for time.</p>
  
  <p>our programming language is Java..any pointers for open source projects will be appreciated..</p>
  
  <p>Thanks in advance..</p>