hash tables which ensures an odd value more efficient solution would ensure the new size is always prime number by searching for the next prime number larger than the original array is saved in temporary variable and the new array is assigned to the table attribute the reason for assigning the new array to the attribute at this time is that we will need to use the findslot(method to add the keys to the new array and that method works off the table attribute the count and maxcount are also reset the value of maxcount is set to be approximately twothirds the size of the new table using the expression shown in line of listing finallythe key/value pairs are added to the new arrayone at time instead of using the add(methodwhich first verifies the key is newwe perform the insertion of each directly within the for loop applicationhistograms graphical displays or charts of tabulated frequencies are very common in statistics these chartsknown as histogramsare used to show the distribution of data across discrete categories histogram consists of collection of categories and counters the number and types of categories can vary depending on the problem the counters are used to accumulate the number of occurrences of values within each category for given data collection consider the example histogram in figure the five letter grades are the categories and the heights of the bars represent the value of the counters grade distribution figure sample histogram for distribution of grades the histogram abstract data type we can define an abstract data type for collecting and storing the frequency counts used in constructing histogram an ideal adt would allow for building general purpose histogram that can contain many different categories and be used with many different problems