Purchase Solution

c++ trees

Not what you're looking for?

Ask Custom Question

Use a binary tree (to be used as an ordered tree) to do the following:

1. reads in the United States constitution. (usconst2.txt)
2. given a list of arbitrarily long list of unordered words with an arbitrary number of different values (words0 appearing in it, determine and print the marginal distribution for this list of words (the U.S. Constitution), that is, count how many times each different value appears in the list and then print out each value along with its count (frequency). The output should be arranged from smallest to largest value (in alphabetical order).
(print 1st 100 words for output).

Example output:

word absolute relative
smith 677 80.8%
jones 88 10.5%.

See the attached files.

Purchase this Solution

Solution Summary

A C++ program using binary tree concept - for analysis of a list of words.

Solution Preview

Please see attachment.

To change print size, instead of 100 to some other value, ...

Solution provided by:
Education
  • BEng, Allahabad University, India
  • MSc , Pune University, India
  • PhD (IP), Pune University, India
Recent Feedback
  • " In question 2, you incorrectly add in the $3.00 dividend that was just paid to determine the value of the stock price using the dividend discount model. In question 4 response, it should have also been recognized that dividend discount models are not useful if any of the parameters used in the model are inaccurate. "
  • "feedback: fail to recognize the operating cash flow will not begin until the end of year 3."
  • "Answer was correct"
  • "Great thanks"
  • "Perfect solution..thank you"
Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Networking Questions

This quiz consists of some basic networking questions.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.