he had used prime number concept why not addition?
Why he haven't use only addition of ascii in rolling function
To avoid/minimize collisions, you must use prime numbers. You must have studied this in the hashing section of your course. If you are not aware, then please refer that.
Primes are used because you have good chances of obtaining a unique value for a typical hash -function
Simple addition is much likely to have collision.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.