Module liba
algorithm library
Functions
hash_bkdr (str[, initial]) | a hash function whose prime number is 131 |
hash_sdbm (str[, initial]) | a hash function whose prime number is 65599 |
isqrt (...) | square root of an unsigned integer |
rsqrt (...) | reciprocal of square-root |
Tables
liba | algorithm library |
Functions
- hash_bkdr (str[, initial])
-
a hash function whose prime number is 131
Parameters:
- str string string to be processed
- initial integer value (optional)
Returns:
-
string
hash value
- hash_sdbm (str[, initial])
-
a hash function whose prime number is 65599
Parameters:
- str string string to be processed
- initial integer value (optional)
Returns:
-
string
hash value
- isqrt (...)
-
square root of an unsigned integer
Parameters:
- ... integer independent variables
Returns:
-
integer
calculated result
- rsqrt (...)
-
reciprocal of square-root
Parameters:
- ... number independent variables
Returns:
-
number
calculated result