title: Relationship between data structures and heap size in java
body: <p>I am trying to learn the relationship between a data structure and heap size and type of JVM. </p>
  
  <ul>
  <li>While choosing an algorithm, I have to choose the best data structure suited to my requirement.</li>
  <li>Now lets say that the data given to me is in GBs.</li>
  </ul>
  
  <p>Now I have following questions:</p>
  
  <ul>
  <li><p>Will I have to change my heap size changes according to the size of data set provided to me. If yes how?</p></li>
  <li><p>How picking a 64 bit over 32 bit can help me in handling huge data provided to me.</p></li>
  </ul>
  
  <p>I just want to understand that what all factors needs to be analyzed while designing an algorithm. And how many things changes according to the data set size.</p>