return hash< const char* >()( x.s );
Search found 27 matches
- Mon Apr 10, 2006 11:28 pm
- Forum: C++
- Topic: about hash_set and hash_map
- Replies: 4
- Views: 2963
- Thu Apr 06, 2006 11:19 pm
- Forum: C++
- Topic: about hash_set and hash_map
- Replies: 4
- Views: 2963
- Sun Apr 02, 2006 10:19 am
- Forum: Volume 110 (11000-11099)
- Topic: 11024 - Circular Lock
- Replies: 14
- Views: 5739
- Sun Apr 02, 2006 10:17 am
- Forum: C++
- Topic: Print a long duble
- Replies: 3
- Views: 2493
- Sun Mar 26, 2006 1:31 am
- Forum: Volume 110 (11000-11099)
- Topic: 11019 - Matrix Matcher
- Replies: 43
- Views: 22768
misof,
As far as I know good hash is the one which uses nice primes... 2^32 is not one of them as far as I know. In addition Cho mentioned that you can use two different hashings and make a pair. This way you minimise the chance of wrong answer. Is it smart to use int and unsigned int as pair of mods?
As far as I know good hash is the one which uses nice primes... 2^32 is not one of them as far as I know. In addition Cho mentioned that you can use two different hashings and make a pair. This way you minimise the chance of wrong answer. Is it smart to use int and unsigned int as pair of mods?
- Sun Mar 26, 2006 1:02 am
- Forum: Volume 110 (11000-11099)
- Topic: 11019 - Matrix Matcher
- Replies: 43
- Views: 22768
- Sun Mar 26, 2006 12:58 am
- Forum: Algorithms
- Topic: Weighted bipartite matching?
- Replies: 10
- Views: 5798
- Sat Mar 25, 2006 5:42 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11019 - Matrix Matcher
- Replies: 43
- Views: 22768
- Sat Mar 25, 2006 5:35 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11019 - Matrix Matcher
- Replies: 43
- Views: 22768
- Thu Mar 23, 2006 10:12 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11012 - Cosmic Cabbages
- Replies: 29
- Views: 11752
- Thu Mar 23, 2006 10:05 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11020 - Efficient Solutions
- Replies: 14
- Views: 7299
- Thu Mar 23, 2006 10:04 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11019 - Matrix Matcher
- Replies: 43
- Views: 22768
Hello,
Cho,
You have very nice idea but I have some doubts that this will give TLE. After you find the same hash as the patern you will need to do the slow compare to see if the matching is valid. For the test case that krijger mentioned (a lot of 'A's) this will give TLE. Do you do something else ...
Cho,
You have very nice idea but I have some doubts that this will give TLE. After you find the same hash as the patern you will need to do the slow compare to see if the matching is valid. For the test case that krijger mentioned (a lot of 'A's) this will give TLE. Do you do something else ...
- Wed Mar 22, 2006 1:20 am
- Forum: Volume 110 (11000-11099)
- Topic: 11020 - Efficient Solutions
- Replies: 14
- Views: 7299
- Tue Mar 21, 2006 1:22 am
- Forum: Volume 110 (11000-11099)
- Topic: 11019 - Matrix Matcher
- Replies: 43
- Views: 22768
- Mon Mar 20, 2006 10:57 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11016 - Square Counting
- Replies: 19
- Views: 9716