[News] [Basics] [Syllabus] [Outlines] [Assignments] [Examples] [Readings] [Bailey Docs]
hashval = alpha * (int) str.charAt(0) + beta * (int) str.charAt(1)
hashval = 0;
for(int i = 0; i < str.length(); ++i) {
hashval = hashval * x + (int) str.charAt(i);
} // for
[News] [Basics] [Syllabus] [Outlines] [Assignments] [Examples] [Readings] [Bailey Docs]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
Source text last modified Sun Oct 18 13:54:48 2009.
This page generated on Sun Oct 18 13:54:50 2009 by Siteweaver.
Contact our webmaster at rebelsky@math.grin.edu