REVEL for Gaddis C++ -- Access Card (What's New in Computer Science)
REVEL for Gaddis C++ -- Access Card (What's New in Computer Science)
1st Edition
ISBN: 9780134403922
Author: Tony Gaddis
Publisher: PEARSON
Question
Book Icon
Chapter 21, 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
1) In a tree, an interior node is a node that has no children. a. True b. False   2) In a tree, the root item has no parent item. a. True b. False
What are trees in algorithm?  Differentiate between Binary Tree and Binary Search Tree by providing one example for each tree type.
Draw a tree with a depth of 3 and indicate all the nodes as either a parent, child, root, or leaf node(s).
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