Jump to content

alextui

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by alextui

  1. IF - THEN is not constructed from basic logic gate. Actually i think the fundamentals building blocks of computing is 0(ZERO) AND 1 (ONE).
  2. Personally i think window system give out more heat than linux, that is why so many small business using linux as their hosting server.
  3. for(int i=0; i<=linearray.length; i++){ // get word from array at first String word = linearray; //then use word to query the hashtable Object o = targetHashTable.get(word); //if the result is not null, it means there is a hit. if(o!=null){ //product the result } }
  4. u need to learn solved the simple problem by looking at java doc. here: http://download.oracle.com/javase/6/docs/api/java/util/Hashtable.html then you will find out , it is keySet(), not keyset(). we can't spoon feeding here, the admin of this forum have zero tolerance on spoon feeding.
  5. Change this: for(Enumeration<String> e = hashtable.keys(); e.hasMoreElements(){ Object obj = e.nextElement(); System.out.println("- Element(" + obj + ") = " + hashtable.get(obj) + "\n"); } into this: for(String key = hashtable.keyset()){ Object obj = hashtable.get(key); System.out.println("- Element(" + key + ") = " + obj + "\n"); }
  6. Change your class name to HashTable1( rather than HashTable) and try again.
  7. Are you expect a brute force algorithm or an optimized one? If you want an optimized one, we need to know more detail/ property of those atom or structure. here is the brute force one: Assuming all atoms is in array atom[x] i=0; sum=0; for each atom[i] i++; j=0; for each atom[j] if(i==j) next; sum=sum+calcFunction(atom[i]+atom[j]); end for end for
  8. Actually all of the programming language are the same, once you control one, you will control all of them.The difference between them is the syntax or features. The key for being a good programmer is how your mind is working. That is why , when you apply a job at google, they only test your ability for solving a problem. Personally i think you can start it from java.
  9. Bio industry is not getting paid good, finally u will find out you need to pursue a medical degree.Therefore, what i recommend is upenn.In case of that you change your mind later on, u still have a lot of option there.
  10. Nothing is perfect ==> god is not a programmer
  11. i hate Nothing, life is so good.
  12. alextui

    forces

    It is a typical case for spoon feeding...
  13. (b) n (d) n2 (j) loglogn Just my thinking, maybe it is not right, i need to go over my text book.
  14. Post your unfinished code here, we can't spoon feeding.
  15. Use "SSH Secure Shell", it comes with gui for transfer file.
  16. Please be more specific, math field is too big, which field you need help? statistics, algebra, matrix?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.