Starting Out with C++ from Control Structures to Objects (8th Edition)
Starting Out with C++ from Control Structures to Objects (8th Edition)
8th Edition
ISBN: 9780133769395
Author: Tony Gaddis
Publisher: PEARSON
Question
Book Icon
Chapter 20, Problem 16RQE
Program Plan Intro

Binary tree:

  • Binary tree is a non-linear data structure.
  • Binary tree contains node such as root node that is pointed to two child nodes.
  • A root node will have left reference node and right reference node.
  • Binary tree will contain more than one self-referenced field.

Searching data in binary tree:

  • Binary tree suits best when searching large amount data, because it will consume less amount of time, since the search is based on the indexing
  • In case of searching the data in standard linked list it is a linear, the search will be performed for the one element to another element till the search element is found in a sequential manner.
  • In a binary tree, the data are stored in form of organized key structure, such that the search is performed based on the index values.
  • It facilitates the search such that when a particular element is searched it looks for the index value that is stored directly, instead of searching each and every element that is present in the binary tree.

Blurred answer
Students have asked these similar questions
A binary tree is one of the easiest but efficient searching process that is used by most searching algorithms. Build a binary tree of your own but your binary tree must have four levels
The following numbers are inserted to a binary search tree in given order: 81, 75, 94, 79, 77 and 93. The node at the lowest node is: a) 93 b) 77 c) 79 d) 94
What makes a binary search tree different from a binary tree?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education