deprosun's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Active Members
Active Posts:
292 (0.21 per day)
Joined:
16-November 10
Profile Views:
4,301
Last Active:
User is offline Jun 19 2014 12:23 PM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   deprosun Hey!

Posts I've Made

  1. In Topic: Grid column to always have 0 or change error message

    Posted 14 Jun 2014

    I was able to do it using validatingEditor tool. You are right, i wasn't using the right tool. Thanks for the time and effort!
  2. In Topic: How to represent different strings with different integers? (Anagram)

    Posted 27 Mar 2014

    View PostSkydiver, on 24 March 2014 - 11:32 PM, said:

    Out of curiosity, why not pick a bigger prime, or just assume perfect hashing?

    The Oxford Dictionary estimates that they maybe up to 3 quarters of a million words. 750000. Assuming 64-bit pointers, you could still easily have a the 6GB of pointers within the hashtable in memory. Assuming an average length of (5.1 + 1) bytes per word (the plus 1 as a null terminator), you would need an additional 4.6GB to hold all the words in memory. So find your friendly PhotoShop geek (who will typically have a maching with at least 12GB RAM if not more) and run your program on it and you can hold everything in memory without breaking a sweat.


    The reason I picked 71889 as my prime purely because there are 71884 words in my dictionary file.


    My computer has 16GB memory. But I am trying to this as efficiently as I can. The biggest task I have to overcome is to generate keys with no un-desired collisions (meaning words with same integer value, but different in length). My initial thought was to just use a division-method to generate unique keys. I should try with a higher prime number. Additionally, zobrist hash sounds promising with respect to what problem, yet I don't fully understand. I will spend more time reading and researching on it.

    PS: sorry for the late reply, busy schedule all over.
    Thanks for taking time into this!
  3. In Topic: How to represent different strings with different integers? (Anagram)

    Posted 24 Mar 2014

    Great Advice!
    However, the way my approach is, I still need BigInteger (in java)object as i am concatenating the individual ascii number of each character.

    But your suggestion better than just using lower cases.
  4. In Topic: url.getContentType() file types like wget.

    Posted 13 Feb 2014

    View Postno2pencil, on 13 February 2014 - 09:55 AM, said:

    Because the question asked is specific to Java, I moved the topic from software support to Java.


    Sorry, it is not a Java question. I was not clear. The question concerns wget options
  5. In Topic: Copying Link address Java using jsoup

    Posted 10 Feb 2014

    Yeah, I also found this way
    Elements links = doc.select("a[href$=.html]")
    String elementURL = link.attr("abs:href");

My Information

Member Title:
D.I.C Regular
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
Woburn,MA
Interests:
Computers, Cricket, Running, Working Out, Graphics Designing, Filming, Photography, Swimming, Food,
Full Name:
Karan Gupta
Years Programming:
1
Programming Languages:
JAVA, C++

Contact Information

E-mail:
Click here to e-mail me
Facebook:
http://www.facebook.com/deprosun

Comments

deprosun has no profile comments yet. Why not say hello?