Hash function to hash key into geographic coordinate

This is a discussion on Hash function to hash key into geographic coordinate within the C++ Programming forums, part of the General Programming Boards category; Dear Mr & Ms, I'm trying to study the hash function which hashes the key (string value) to the geographic ...

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    2

    Post Hash function to hash key into geographic coordinate

    Dear Mr & Ms,

    I'm trying to study the hash function which hashes the key (string value) to the geographic coordinates.

    Formula: H(key) = (x,y) ;with x,y: float

    For example: H("Document") = (1.23 , 3.25) => This is only the example number, not exact.

    So I can't find the algorithm, the source code in C++ for this function. If you have one or something about that, would you please share for me ?

    Thanks for your help.

  2. #2
    printf("Hello Cboard\n"); codeprada's Avatar
    Join Date
    Jan 2011
    Location
    In a little room at the back of your brain
    Posts
    68
    i'm not sure i understand but do you want to store value's (1.23, 3.25) with key "Document" like an associative array?
    We shouldn't be quick to criticize unless we can do better.
    Code:
    public function __clone() { die ( "I'm one of a kind" ); }

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    2
    Ah, I've read the paper "GHT: Geographic Hash Table", and in this paper, authors said that they use a hash function to hash the name of the document into a geographic coordinate: H(name) = (x,y)
    => They will store that document object at (x,y) coordinate in the network.
    So I don't know about this hash function, how it does and it's algorithm in C++.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 04:06 PM
  2. Calling a Thread with a Function Pointer.
    By ScrollMaster in forum Windows Programming
    Replies: 6
    Last Post: 06-10-2006, 09:56 AM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 05:42 PM
  5. BST/Red and Black Tree
    By ghettoman in forum C++ Programming
    Replies: 0
    Last Post: 10-24-2001, 11:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21