0

Can any one tell me some real world examples of binary tree structure ?

Mariselvam
  • 1,093
  • 2
  • 15
  • 28
  • 1
    possible duplicate of [What are the applications of binary trees?](http://stackoverflow.com/questions/2130416/what-are-the-applications-of-binary-trees) – nawfal Jun 13 '14 at 09:48

4 Answers4

2

Binary trees are used all over the place in the real world. Pretty much every major implementation of a sorted data-structure uses one (usually a balanced variant, like red-black).

In C++, map and set are built on it.

Lou Franco
  • 87,846
  • 14
  • 132
  • 192
0

Represent a uni-dimensional space.

I don't know world examples other than this one.

But it's large used for logical purposes and indexers.

Marcos Vasconcelos
  • 18,136
  • 30
  • 106
  • 167
0
  • Databases indexes. When you index a field, it is put in a binary tree for fast retrieval.
  • General Searching/sorting. A binary search tree will let you sort and search for data quickly
Byron Whitlock
  • 52,691
  • 28
  • 123
  • 168
0

I believe Huffman Algorithm also use Binary tree!!!

mqpasta
  • 960
  • 3
  • 14
  • 38