Can you identify tree(s)?

The tree in the figure given above is a/an ?


The problem is a part of this set
Binary Search Tree Dancing Tree Binary Tree AVL Tree

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Zeeshan Ali
Jan 20, 2016

The tree given in the figure satisfies to be Binary because it has nodes with at most 2 children but does not satisfy the search property to be a BST which is: n o d e l e f t d a t a n o d e d a t a n o d e r i g h t d a t a node \rightarrow left \rightarrow data \le node \rightarrow data \le node \rightarrow right \rightarrow data Moreover an AVL Tree is also a type of BST (Binary Search Tree). Hence it (the tree) lies only in the category of Binary Trees :)

Nikola Grujic
Jan 25, 2016

It is a Binary Tree: has at most 2 children, but not BST because it's not sorted. Happy for being a programmer. :P

Yeah! You are right!

Zeeshan Ali - 5 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...