1. Submit a word document: The keys 14, 20, 15, 3, 2,25, 7, and 13 are inserted into an initially empty hashtable of length 10 using open addressing with hash function h(k) =k mod 10 and linear probing. What is the resultant hash table?
2. Submit a .java file: (The Point class) Design a class namedPoint that meets the following requirements: Two data fields x andy for representing a point with getter methods A no-arg constructorthat constructs a point for (0, 0) A constructor that constructs apoint with the specified x and y values Override the equals method.Point p1 is said to be equal to point p2 if p1.x == p2.x andp1.y == p2.y. Override the hashCode method. (For reference, see theimplementation of the Point2D class in the Java API.)
1. Submit a word document: The keys 14, 20, 15, 3, 2, 25, 7, and 13 are inserted into an initially empty hash table of l
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am