C++: Hash function object type (hFint256)
Not what you're looking for?
Consider the hash function object type
Class hFint256
{
Public:
unsigned int operator() (int item) const
{
Return (item/16 % 256);
}
};
(a) What is the size of the hash table?
(b) What are hFint256() (16) and hFint256() (257)?
(c) In general, what is the action of the hash function?
Purchase this Solution
Solution Summary
Brief explanations and stepwise calculations included.
Solution Preview
(a) Since the last operation in computation of hash value is "% 256", it indicates that any item value will be hashed to a value in the range [0,255], thereby meaning that ...
Purchase this Solution
Free BrainMass Quizzes
Basic Networking Questions
This quiz consists of some basic networking questions.
C# variables and classes
This quiz contains questions about C# classes and variables.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
C++ Operators
This quiz tests a student's knowledge about C++ operators.