Devam Ediyor

495238 Latin to English

This is a chance to use BST trees and linked list, you may use any of the implementations of tree classes from your text book or you can write your own.

Each unit in a Latin textbook contains a Latin-English vocabulary of words that have been used for the first time in a particular unit. Write a program that converts a set of vocabularies stored in file [url removed, login to view] into a set of English-Latin vocabularies. Make the following assumptions:

a. Unit names are preceded by a percentage symbol - %

b. There is only one entry per line.

c. A Latin word is separated by a colon from its English equivalent(s); if there is more than one equivalent , they are separated by a comma.

To output English words in alphabetical order, create a binary search tree for each unit containing English words and lined lists of Latin equivalents.

Make sure that there is only one node for each English word in the tree. For example, there is only one node for and, although and is used twice in unit 6: with words ac and atque.

After the task has been completed for a given unit. (that is, the contents of the tree has been stored in an output file), delete the tree along with all linked lists from computer memory before creating a tree for the next unit.

Here is an example of a file containing Latin-English vocabularies:

%Unit 5

ante : before, in front of, previously

antiquus : ancient

ardeo : burn, be on fire, desire

arma : arms, weapons

aurum : gold

aureus : golden, of gold

%Unit 6

animal : animal

Athenae : Athens

atque : qnd

ac : and

aurora : dawn

%Unit 7

amo : love

amor : love

annus : year

Asia : Asia

From these units, the program should generate the following output:

%Unit 5

Ancient : antiques

arms : arma

be on fire : ardeo

before : ante

burn :ardeo

desire : ardeo

gold : aurum

golden : aureus

in front of : ante

of gold : aureus

previously : ante

weapons : arma

%Unit 6

Athens : Athenae

and : ac, atque

animal : animal

dawn : aurora

% Unit 7

Asia : Asia

love : amor, amo

year : annus

Beceriler: Her şey Kabul, İngilizce (İngiliz)

Daha fazlasını görün: write your own book, write a program for binary search, use of binary search tree, used to write a book on, trees search, tree node, tree binary search, stored program computer, search trees, search in binary tree, search for trees, search bst, search binary tree, search binary search tree, search binary, search a tree, program of binary search in c, program for binary search in c, program for binary search, order of trees, order of tree, order of binary tree, order of binary search, node of a tree, node in tree

İşveren Hakkında:
( 0 değerlendirme )

Proje NO: #2241153