Results 1 to 3 of 3

Thread: Java trees

  1. #1
    sch518 is offline Member
    Join Date
    Apr 2011
    Posts
    5
    Rep Power
    0

    Question Java trees

    I am learning trees in my computer science class however I don't understand it much at all and can't find much about it. How can I tell if the tree is balanced, complete, full, and/or a binary search tree. Also the height, leaves and the number of internal nodes? I know its a lot but please help.

    Here is the tree

    Java Code:
                35
             /       \
          27          63
         /   \        /   \
       15    32      62    100
                    /
                  61
    Last edited by sch518; 04-25-2011 at 06:32 PM.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default

    This is quite a broad question that you might be better off searching the net for solutions (to which there are many). For example: Binary Trees

  3. #3
    Maximus-EVG is offline Member
    Join Date
    Apr 2011
    Location
    Canada!
    Posts
    30
    Rep Power
    0

    Default

    This book can help you with it:
    Discrete Mathematics with Applications
    So its library, or whichever other ways you know of acquiring it.

Similar Threads

  1. HELP!! Binary trees
    By Get_tanked in forum New To Java
    Replies: 4
    Last Post: 03-24-2011, 07:09 PM
  2. Red/Black Trees
    By f1gh in forum New To Java
    Replies: 4
    Last Post: 12-12-2010, 03:30 AM
  3. Binary trees
    By girgishf in forum Advanced Java
    Replies: 15
    Last Post: 11-20-2010, 05:29 PM
  4. Need help with Trees...(8-puzzle)
    By ventrue in forum New To Java
    Replies: 2
    Last Post: 03-24-2009, 12:04 AM
  5. Help With Tournament Trees
    By wiggsfly in forum New To Java
    Replies: 2
    Last Post: 10-26-2008, 10:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •