Question
There is no starter file. Use the same inputs you used for the Jumbles Project and the expeced output is identical Lab#9 is a re-make
There is no starter file. Use the same inputs you used for the Jumbles Project and the expeced output is identical
Lab#9 is a re-make of the Jumbles project.
Since you know what a TreeSet is you should use it to store your dictionary and jumbles files. No need to call Collections.sort() after the loads.
Your answer key data strucure however must be a HashMap
Performance for a TreeMap vs. HashMap will be almost identical for inputs of the size we are using.
Actual runtime speed will be very fast. Should be at most around one second even on an older slower laptop.
Output for Jumbles Project:
java Project4 dictionary.txt jumbles.txt addej jaded ahicryrhe hierarchy alvan naval annaab banana baltoc cobalt braney nearby celer creel couph pouch cukklen knuckle dica acid cadi caid dobeny beyond dobol blood dufil fluid dupled puddle eslyep sleepy ettniner renitent ettorp potter genjal jangle gluhc gulch hartox thorax hoybis boyish hucnah haunch iddec diced irrpo prior kutbec bucket lappor poplar lasia alias laurib burial lubly bully meefal female milit limit mopsie impose mycall calmly nekel kneel nokte token noper prone nwae anew wane wean nyegtr gentry perrim primer preko poker pudmy dumpy pypin nippy rebisc scribe rodug gourd rpeoims imposer promise semipro shewo howes whose wardty tawdry warllc yaldde deadly
Original Jumbles Project:
import java.io.*; import java.util.*;
public class Project8 { //List for Collecting permutations of word static HashSet
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started