+ Reply to Thread
Results 1 to 2 of 2

Thread: Maximum number of binary tree using 3 nodes

  1. #1
    Surfer is offline Senior Member
    Join Date
    Mar 2010
    Posts
    321

    Maximum number of binary tree using 3 nodes

    what is the maximum number of binary trees that can be formed using 3 unlabeled nodes ? explain..

  2. #2
    Navin Israni Guest
    I think the answer is 10 trees (not BTs)..by defn of a tree...only a single node can also be a tree..then say if there are 3 nodes A,B,C...then each of them individually can be a tree...i.e. 3..then A-B as a tree, C alone i.e +2 =5 and then B-C, A alone i.e +2 = 7 and similarly, A-C, B alone..that makes it 9...+1 taking all 3...so total 10 trees..

    as far as BT is concerned..we can have 6 trees..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 12th July 2010, 11:30
  2. Swap Binary Tree nodes
    By TopGun in forum Algorithm/Data Structure Questions
    Replies: 1
    Last Post: 16th June 2008, 13:37
  3. Number of possible tree from n nodes
    By TopGun in forum Microsoft
    Replies: 1
    Last Post: 16th June 2008, 12:10

Tags for this Thread

Bookmarks

Posting Permissions

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