Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
CONTENTS OF THIS FILE
---------------------
   
 * Folder containing java files
 * Introduction
 * Steps to execute the program
 * Screenshots

INTRODUCTION
------------

The purpose of this program is to implement and compare sorting algorithms in Java. The first exercise of the program generates random integer values in arrays and outputs their time consumption as well as output file containing the sorted arrays. On the other hand, the second exercise uses a list of words from an input file which are then sorted and stored in LinkedList data structure type, which further contains their anagram if there are any. The program inserts the anagram words in the LinkedList in alphabetical order and further sorts them alphabetically using quick sort in the ArrayList that holds all the LinkedList Nodes. The program outputs a file containing the list of words and their anagrams.

 STEPS TO EXECUTE THE PROGRAM
------------

Step 1: Get the correct path to the files for this program.
Step 2: Compline the java files in the command line interface.
Step 3: Run the files from the command-line interface as displayed in the screenshots section.
Step 4: The program generates output files in the default directory.

 SCREENSHOTS
________________

C:\Users\arsal\eclipse-workspace\Lab10Exercise2\src>java AnagramsApp C:\Users\arsal\eclipse-workspace\Lab10Exercise2\test_input.txt output
Wrote file to C:\Users\arsal\eclipse-workspace\Lab10Exercise2\src\output.txt
Time for processing input: 6697240800

C:\Users\arsal\eclipse-workspace\Lab10Exercise2\src>