Purchase Solution

Books listing program using binary tree

Not what you're looking for?

Ask Custom Question

The program in the attachment uses an ordered linked list. Summary report menu selection shows all books in sorted alphabetical order and report by year menu displays books in ascending order by publish year. Keep this format, but modify the program to make it use binary tree instead of ordered linked list. You may use more than one binary trees.

Attachments
Purchase this Solution

Solution Summary

It demonstrates how two different trees can be implemented on top of same array nodes. Moreover "traverseInOrder" function is implemented as a generic function that is invoked differently to do in-order traversal of two different trees.

Solution Preview

Please compare the attached code (315957.cpp) with your linked list version of code and learn one way as to how two different trees can be implemented on top of ...

Purchase this Solution


Free BrainMass Quizzes
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.

Javscript Basics

Quiz on basics of javascript programming language.

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.

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.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.