{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Project4 - ECE 242 Project 4 For this project we will be...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 242 Project 4 For this project, we will be dealing with Hash Tables and Trees. Using a dictionary file that we provide, you will hash all the words from the file and create a Hash Table. Once you have a fully-populated Hash Table, you will create a little 'game' that will involve using the Hash Table and a Tree. All will be revealed shortly. Hash Table In this project, the Hash Table will use a chaining mechanism. What this means is that the table will essentially be an array of Linked Lists. Step 1 – Creating the hash table objects: Create a class called ' ListNode .' This object functions similar to the Linked List object nodes that you've seen countless times throughout the course of the semester. These objects will store a single dictionary word listing and an object reference to the next ListNode in the Linked List. Step 2 – Creating the hash table: Create an array of ListNode objects to store each of the Linked Lists that you create. Your array should contain 10,000 entries. hashItems: Create a method that will hash the Strings to an integer value. You may not use any Java hashcode function or any other kinds of libraries. Put: Create a method that will take a given String, hash the String, and append a ListNode object containing that String to the end of the Linked List at the index that the hashing function produces.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern