binary tree

This is a discussion on binary tree within the C Programming forums, part of the General Programming Boards category; Can anyone give me an idea of how i can write a program that makes a binary tree so that ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    36

    binary tree

    Can anyone give me an idea of how i can write a program that makes a binary tree so that i can test other programs that work with binary trees?

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    This site has several articles on binary trees - they could teach you how to make and use one correctly. I'm not quite sure what you mean by testing other programs that work with binary trees - could you explain this a bit more?

    edit: http://www.cprogramming.com/tutorial/lesson18.html

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    36
    i have a homework assignment to whrite various functions (i.e. adding leaves, counting the nodes ....)and i have to test them on trees to see if i did them right. I thought maybe i can write a program that i can create a tree at runtime?

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Perhaps you should look in Prelude's corner at the Binary Tree example there.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 11-04-2006, 11:07 AM
  2. 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
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. BST/Red and Black Tree
    By ghettoman in forum C++ Programming
    Replies: 0
    Last Post: 10-24-2001, 11:45 PM

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