answersLogoWhite

0


Best Answer

1) the complexity of insertion,deletion and searching operation is depend on the height of the tree.

i.e. if height is n(for skew binary tree) then complexity is O(n) .

2) difficult to get the sorted list from the binary tree.which is easy for BST.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

1. One application is to find duplicates in a list of numbers. Let a given list be" 12 34 56 89 33 11 89 the first number in the list is placed in a node that is established as the root of a binary tree. Each number is compared with the node in the root, if the number is larger, we search the right sub-tree else we search the left sub-tree. If the sub-tree is empty, the number is not a duplicate and this will be added as a new node. 2. Binary trees can be used for sorting a given list such that, if we take the first number as root, the numbers less than that number will be transfered to left sub-tree and the greater numbers to right sub-tree. 3. Binary trees are also used for developing the huffman codes.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

A binary search tree is a binary tree. Definitions differ, but one alternative says that a binary tree can be either:

  • empty
  • Or be a root node N with two sons L and R, each of which is a binary tree.
On top of being a binary tree, each node of the binary search tree stores a key. Say the key is an integer. The binary search tree has the property that every key which is to the left of a node M or in its left child is smaller or equal to the node's key. Also, every key which is to the right of a node M or in its right child is greater or equal to its key.
This enables us to use the binary search tree for search (now there's a surprise!):
Looking for a value we start scanning the tree at the root, and go left or right according to the respective node keys, until we either find an identical key or reach a leaf that has another key value, meaning that the search has failed.
We can store a payload with the key, and thus use the binary search tree as a dictionary.
In order for search to be efficient, we need the binary tree to be balanced - No node can have too great a difference between the sizes of its left and right children.
The advantage of binary search trees over hash maps is that we can go over keys in order without needing to sort them. Usually, binary search tree operations take O(log N) when N is the number of nodes while hash map operations take O(1), so the speed of hash maps often makes us choose them over binary search trees.
This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Binary trees are used to store comparable items that need to be searched often. While adding and removing items to a binary tree are costly compared to a typical list, searching an element takes logarithmic time versus the linear time of a list or array.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago
  • Binary Search Tree - Used in many search applications where data is constantly entering/leaving, such as the map and set objects in many languages' libraries.
  • Binary Space Partition - Used in almost every 3D video game to determine what objects need to be rendered.
  • Binary Tries - Used in almost every high-bandwidth router for storing router-tables.
  • Hash Trees - used in p2p programs and specialized image-signatures in which a hash needs to be verified, but the whole file is not available.
  • Heaps - Used in heap-sort; fast implementations of Dijkstra's algorithm; and in implementing efficient priority-queues, which are used in scheduling processes in many operating systems, Quality-of-Service in routers, and A* (path-finding algorithm used in AI applications, including video games).
  • Huffman Coding Tree (Chip Uni) - used in compression algorithms, such as those used by the .jpeg and .mp3 file-formats.
  • GGM Trees - Used in cryptographic applications to generate a tree of pseudo-random numbers.
  • Syntax Tree - Constructed by compilers and (implicitly) calculators to parse expressions.
  • Treap - Randomized data structure used in wireless networking and memory allocation.
  • T-tree - Though most databases use some form of B-tree to store data on the drive, databases which keep all (most) their data in memory often use T-trees to do so.
This answer is:
User Avatar

User Avatar

Wiki User

9y ago

A binary tree can be used as a simple decision tree with two options. In this case, each leaf will be a final decision arrived by traversing one branch of the tree. Another use of a binary tree is to sort numerical data in a very simple yet effective way.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

A threaded binary tree is structured in an order that, all right child pointers would normally be null and points to the 'in-order successor' of the node. Similarly, all the left child pointers would normally be null and points to the 'in-order predecessor' of the node.Uses of Threaded binary tree:

1.Traversal is faster than unthreaded binary trees

2.More subtle, by enabling the determination of predecessor and successor nodes that starts from any node, in an efficient manner.

3.No stack overload can be carried out with the threads.

4.Accessibility of any node from any other node

5.It is easy to implement to insertion and deletion from a threaded tree.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

A binary tree is a tree data structure in which each node has at most two child nodes. There are several common orders in which nodes can be visited. Each of these nodes has useful properties that are exploited in algorithms.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Binary trees are commonly used to implement binary search tree and binary heaps.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Application of binary tree in data structure?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a binary tree?

A binary tree is a data structure consisting of binary nodes. A binary node is a data structure with two branches, each of which may hold a reference to another binary node. These branches are known as the left and right branches respectively. Since the nodes maintain references to every other node in the tree, it is only necessary to keep track of the root node.


How many types of tree in data structure?

1. Binary Tree 2. Null Tree 3. High&Low Balance Tree . . .


What are the Application of tree and graph in data file structures?

Using binary tree, one can create expression trees. The leaves of the expression tree are operands such as constants, variable names and the other node contains the operator (binary operator). this particular tree seems to be binary because all the operators used are binary operators. it is also possible for a node to have one node also, in case when a unary minus operator is used. we can evaluate an expression tree by applying the operator at the root to the values obtained by recursively evaluating the left and right sub trees.


How do you print all data in a Binary Search Tree?

By using Depth First Search or Breadth First search Tree traversal algorithm we can print data in Binary search tree.


What are primary data structure?

A primary data structure is a data structure that is created without the use of other data structures, whereas a secondary data structure relies on a primary data structure. A data structure is an organized collection of data elements.[NOTE: Be careful not to confuse the term data structure with the term data type. It is a common mistake. This answer addresses dat structures. Often people who ask about primary data structures or primitive data structures are really asking about primitve data types.]Here is an example where an array is a primary data structure and a binary tree is a secondary data structure based on the array:An array is a primary data structure -- it is a set of sequentially numbered data elements, such as an array of integers or an array of names -- name0, name, name2, ...A binary tree is a data structure where each element (called a node) has a data component and pointers to it's left and right sub-trees. [Think of a directory of folders, but each folder can only have two sub-folders.] We can create an and store an array of nodes to set up the tree in languages like C++ or Java.The root of the tree could be node 1 in the array, it would point to nodes 2 and 3. node 2 would point to nodes 4 and 5, while node 3 would point to nodes 6 and 7 .. and so on. generally node n point to nodes 2n and 2n+1. (You can start with node 0, but the math is a little easier if you start with node 1.)The binary tree in this case is the secondary data structure, while the undelying array is the primary data structure.

Related questions

What is the difference between binary tree and tree data structure?

binary tree is a specific tree data structure where each node can have at most 2 children nodes. In a general Tree data structure nodes can have infinite children nodes.


What is a binary tree?

A binary tree is a data structure consisting of binary nodes. A binary node is a data structure with two branches, each of which may hold a reference to another binary node. These branches are known as the left and right branches respectively. Since the nodes maintain references to every other node in the tree, it is only necessary to keep track of the root node.


How many types of tree in data structure?

1. Binary Tree 2. Null Tree 3. High&Low Balance Tree . . .


Difference between B-tree and Binomial search tree?

A B-tree is a kind of tree data structure which is a generalization of a binary search tree where each node can have more than two children and contain more than 1 value. A Binominal search tree I am not sure of. If you mean Binary search tree, then it is an abstract data structure. Binominal is a term usually used with distributions while Binary is usually used with data. Hope this helps.


What are the application of binary tree in computer science?

What are the applications of Binary Tree.


What is the difference between primitive and non primitive data structure?

A primitive data structure is generally a basic structure that is usually built into the language, such as an integer, an array or a linked-list.A non-primitive data structure is built out of primitive data structures linked together in meaningful ways, such as a binary search tree, AVL Tree, Hashtable, etc.


What are the Application of tree and graph in data file structures?

Using binary tree, one can create expression trees. The leaves of the expression tree are operands such as constants, variable names and the other node contains the operator (binary operator). this particular tree seems to be binary because all the operators used are binary operators. it is also possible for a node to have one node also, in case when a unary minus operator is used. we can evaluate an expression tree by applying the operator at the root to the values obtained by recursively evaluating the left and right sub trees.


What is binary search in data structure using c?

a tree which has atmost two nodes is called binary tree binary search tree is a binary tree which satisfies the following 1.every node in tree must be distinct 2.values in right subtree > value at root 3.values in left subtree < value at root 4.left,right subtrees must be binary search trees


How do you print all data in a Binary Search Tree?

By using Depth First Search or Breadth First search Tree traversal algorithm we can print data in Binary search tree.


What are primary data structure?

A primary data structure is a data structure that is created without the use of other data structures, whereas a secondary data structure relies on a primary data structure. A data structure is an organized collection of data elements.[NOTE: Be careful not to confuse the term data structure with the term data type. It is a common mistake. This answer addresses dat structures. Often people who ask about primary data structures or primitive data structures are really asking about primitve data types.]Here is an example where an array is a primary data structure and a binary tree is a secondary data structure based on the array:An array is a primary data structure -- it is a set of sequentially numbered data elements, such as an array of integers or an array of names -- name0, name, name2, ...A binary tree is a data structure where each element (called a node) has a data component and pointers to it's left and right sub-trees. [Think of a directory of folders, but each folder can only have two sub-folders.] We can create an and store an array of nodes to set up the tree in languages like C++ or Java.The root of the tree could be node 1 in the array, it would point to nodes 2 and 3. node 2 would point to nodes 4 and 5, while node 3 would point to nodes 6 and 7 .. and so on. generally node n point to nodes 2n and 2n+1. (You can start with node 0, but the math is a little easier if you start with node 1.)The binary tree in this case is the secondary data structure, while the undelying array is the primary data structure.


What is a difference between binary tree and binary?

I think a binary tree is a thing to help you search whereas binary is 100100101010, that thing that computers use...I think the difference is that a binary tree helps you search but binary is the thing that computers use:10010101001010 The term binary refers to the idea that there are "2" options. In terms of computers at a low level, this refers to 1's and 0's (high voltage and low voltage). A binary tree is a completely different concept. It is a type of data structure with a parent node that branches down into 2 child nodes at each level. If implemented as a binary *search* tree it is pretty efficient at searching data sets that are ordered (O(log n))


What is the difference between avl tree and binary tree?

A binary tree is a tree data structure in which each node has at most two children. Typically the child nodes are called left and right. One common use of binary trees is binary search trees; another is binary heaps. A binary search tree (BST) is a binary tree data structure which has the following properties: ->each node has a value; ->a total order is defined on these values; ->the left subtree of a node contains only values less than the node's value; ->the right subtree of a node contains only values greater than or equal to the node's value. An AVL tree is a self-balancing binary search tree. In an AVL tree the heights of the two child subtrees of any node differ by at most one, therefore it is also called height-balanced. Lookup, insertion, and deletion all take O(log n) time in both the average and worst cases. Additions and deletions may require the tree to be rebalanced by one or more tree rotations.