Utilizes your knowledge about a number of data structures

Assignment Help Data Structure & Algorithms
Reference no: EM132105149

Problem Statement: In this project, you are asked to write a Java application that utilizes your knowledge about a number of data structures we have been discussing throughout the course of this semester.

The main task of this application is to automatically generate a book index for a given arbitrary text file. As you know, a traditional book index lists on which page each important/key word occurs. In the application that you will develop, you are required to generate an index for ALL words in the given file.

To standardized testing of all students' submissions, all of you are required to use the given text file posted online next to this project statement. The file name is "alice30.txt" and it contains the famous Alice in Wonderland book that is freely available via Project Gutenberg. The simple given test file that you MUST use does NOT have page numbers and thus you will use chapters instead in your indexing.

While considering which data structure that can best fit this application, please remember that your index will look similar to the following: "Keyword"?{2, 3, 7, 9} Where "keyword" is the word that you are trying to index and {2, 3, 7, 9} is the set of chapters that "keyword" occurs in. In other words, "keyword" occurs in chapters 2, 3, 7, and 9.

If a keyword occurs multiple times in the same chapter, your index will ONLY list the chapter one time and thus maintain the set property.

The structure of such index can be implemented using a Map whose keys are the Strings representing the words that you are indexing and the value associated with each key is a set of integer values denoting which chapters a particular key word occurs.

Hint: your main data structure can take the following form. The choice of TreeMap and TreeSet will ensure that the data stored in these structures are sorted. TreeMap> Your code is expected to have two files with the following functionalities:

A Driver program that will create a Scanner object to open the given input file and make sure that ALL non-alphabetical characters are skipped. To do that you need to use the appropriate regular expressions with the .useDelimiter() method of the scanner class. Then, all data from the input file will be read and converted to lower case.

The driver program will then invoke the appropriate methods from the MainIndexingClass to generate the desired index then display the generated index on the monitor. ?

A MainIndexingClass file that defines the selected data structure then provides appropriate constructor to initialize that TreeMap. This class also will provide all needed functionalities to generate and maintain the required index structure.

Reference no: EM132105149

Questions Cloud

List of project requirements from a wbs : What actually differentiates a list of project requirements from a WBS?
Create a representation of an oregon state university : Create a representation of an Oregon State University information system that will contain information about the university.
Composed of upper-level management : Consider an organization that is composed of upper-level management, middle and lower level managers, and laborers
Appropriate project-oriented development process : How does a project manager choose the appropriate project-oriented development process is an important decision.
Utilizes your knowledge about a number of data structures : Write a Java application that utilizes your knowledge about a number of data structures we have been discussing throughout the course of this semester.
Discuss the contents of a detailed project management : Discuss the contents of a detailed project management plan using a real-world project examples
Growth of outsourcing to third-party goods : With the growth of outsourcing to third-party goods and services at a rate of 40 to 80 percent, how can project managers lead successfully?
What are some other ways to accomplish this : One way to empower buyer and seller organizations to approve all project transactions is to include a caveat that lawyers from both sides
Calculate some statistics about the performance : Implement a subroutine MAX SCORES to find the highest score obtained by a student and store this value in the memory location 0x5000 .

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd