Binary Trees

This is a discussion on Binary Trees within the C++ Programming forums, part of the General Programming Boards category; I've recently been working on binary trees for my programming class. The only problem that I have had is coming ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    4

    Binary Trees

    I've recently been working on binary trees for my programming class. The only problem that I have had is coming up with a program to write. My teacher is of no help with the matter. If anyone could give me a suggestion for a program that has something to do with binary trees I would be greatful.

    Thanks!

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    A program that sorts some data using binary sort? (names, addresses, etc...)
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Well, if you already got a search, delete, and add function, then look up Huffman code which is an excellent example of binary trees. If you want to move on to other data structures then try red-black trees.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A Binary Search Tree of... Binary Search Trees...
    By SlyMaelstrom in forum C++ Programming
    Replies: 5
    Last Post: 12-10-2005, 02:12 PM
  2. Binary Trees
    By wvu2005 in forum C Programming
    Replies: 7
    Last Post: 10-15-2005, 05:59 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21