public static byte[] generate(Set<Integer> list,boolean minimal){
  ByteArrayOutputStream out=new ByteArrayOutputStream();
  generate(list,0,minimal,out);
  return compress(out.toByteArray());
}

public static byte [ ] generate ( Set < Integer > list , boolean minimal ) { ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; generate ( list , 0 , minimal , out ) ; return compress ( out . toByteArray ( ) ) ; }
generate the perfect hash function data from the given set of integers .
