Customize your cookie preferences

We respect your right to privacy. You can choose not to allow some types of cookies. Your cookie preferences will apply across our website.

We use cookies on our site to enhance your user experience, provide personalized content, and analyze our traffic.

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Would anybody mind explaining this formula please? I need to

You are currently reading a thread in /sci/ - Science & Math

Thread replies: 7
Thread images: 1
Would anybody mind explaining this formula please? I need to hash a word but have no idea what the value equalling to ASCII is
>>
>>7962016
m=Athens is in Greece
m_1 = ASCII value of A
m_2 = ASCII value of t
m_3 = ASCII value of h
etc.

What do you not get?
>>
>>7962021
But where does the mod 13 come into the equation?
>>
>>7962027
The ASCII values are numbers.

You take those numbers mod 13.
>>
>>7962028
Ah right, thank you very much
>>
>>7962027
sum up the ASCII values of the string then mod 13 the result.
>>
>>7962036
I got 2311, mod that by 13 and the result is 10. Seems like an odd hash function for a string of words
Thread replies: 7
Thread images: 1

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at imagescucc@gmail.com with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK