Problem with Trees

This is a discussion on Problem with Trees within the C Programming forums, part of the General Programming Boards category; can anyone tell me the best way to do a program for listing all the non common elements of two ...

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    1

    Smile Problem with Trees

    can anyone tell me the best way to do a program for listing all the non common elements of two binary balanced trees? which are the best data structures to use in this case?
    thanx!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,555
    > which are the best data structures to use in this case?
    My guess would be a balanced binary tree, since that is what you start with.

    Maybe traverse both at the same time and report the differences?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  2. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  3. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 05:24 PM
  4. Replies: 5
    Last Post: 11-07-2005, 10:34 PM
  5. beginner problem
    By The_Nymph in forum C Programming
    Replies: 4
    Last Post: 03-05-2002, 04:46 PM

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