Find Jobs
Hire Freelancers

A spelling checker using Binary Trees

$5-10 USD

Κλειστή
Αναρτήθηκε πάνω από 20 χρόνια πριν

$5-10 USD

Πληρωμή κατά την παράδοση
Write a program that implements dynamic binary trees. The program will read in two text files one word at a time. (A “word?? will be any string of letters and numbers, including apostrophes. A word will end at a space, tab, quotation, or other punctuation mark. Ignore capitalization.) The first text file “**[login to view URL]**?? will be a relatively long list of words, all spelled correctly. You should insert each of these into a binary tree. The order of the words will be randomized, so your tree should be fairly well balanced. The second input file “**[login to view URL]**?? will be a free-form text file which may be taken from current news sources, or an English literature text, such as Mark Twain. For each word, check to see it that word (with that spelling) is contained in the dictionary tree. If it is not in the dictionary, put it into a separate tree of misspelled words. Continue reading words from the input file until you reach the end of file. . Print out this initial list of misspelled words, and print out the count of words in this list. Traverse your tree of misspelled words, and see if you can apply some simple rules to find a correctly spelled version in the dictionary. For example, if the misspelled word ends in **s** or **‘s** (apostrophe-s), try removing that letter or letters and see if it can be found in the tree. If it is found, remove it from the tree of misspelled words, and print it out as part of a list of “found words.?? This list should be in alphabetical order. Other simple things to try: Check for other suffixes such as a single apostrophe without an s, or **ed** suffix. (You are not expected to try _all possible_ suffixes, but as you look at the initial list of misspelled words, you will see some things to try. At a minimum, try the ones listed here.) At the end of this pass, print out the number of words found by each rule you used. offer the user running your program the ability to add these words to the dictionary. (For simplicity , just go through the first 10 misspelled words.) If the user chooses to add them to the dictionary, then remove them from the misspelled word tree and add them to the dictionary tree. Finally, print out the list of words still thought to be misspelled, and count them. Print out this final count. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. ## Platform Windows XP C++
Ταυτότητα εργασίας: 3015183

Σχετικά με την εργασία

4 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 20 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
4 freelancers δίνουν μια μέση προσφορά $8 USD για αυτή τη δουλειά
Avatar Χρήστη
See private message.
$6,80 USD σε 7 ημέρες
5,0 (9 αξιολογήσεις)
3,0
3,0
Avatar Χρήστη
See private message.
$8,50 USD σε 7 ημέρες
4,9 (3 αξιολογήσεις)
1,4
1,4
Avatar Χρήστη
See private message.
$8,50 USD σε 7 ημέρες
4,8 (5 αξιολογήσεις)
0,9
0,9
Avatar Χρήστη
See private message.
$7,65 USD σε 7 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
Tuscaloosa, United States
0,0
0
Μέλος από Αυγ 31, 2003

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.