liveBook · Manning

Binary tree

A binary tree is a tree data structure in which each node has at most two children.

How 4 Manning books explain it

Grokking Machine Learning

A tree data structure in which each node has at most two child branches.

How it is used
Represents yes-or-no decision processes as branches leading to decisions.
How deep it goes
Defines roots, decision nodes, leaves, branches, and tree depth.
Examples
Uses rain and temperature questions to decide whether to wear a jacket.
What you can do after
Apply branch traversal to follow yes-or-no questions toward a decision.

Read how Grokking Machine Learning explains binary tree →

Grokking Algorithms, Second Edition

A binary tree is a tree in which each node has at most two children.

How it is used
Provides the two-child tree structure used to introduce Huffman coding and binary search trees.
How deep it goes
Defines the node limit and subtrees, then works through a search-tree example without implementing a general binary tree.
Examples
Uses an ancestry chart and a search for 7 in a binary search tree rooted at 10.
What you can do after
Evaluate/understand whether a tree meets the two-child limit and why a binary search tree can skip branches during search.

Read how Grokking Algorithms, Second Edition explains binary tree →

Learn C++ by Example

A binary tree is a tree data structure in which each node has at most two child branches.

How it is used
Uses binary trees to explain how map searches avoid scanning every stored element.
How deep it goes
Explains nodes, child pointers, ordering, balancing, and one search path, but stops short of implementation code.
Examples
Uses map pairs {1:a}, {3:c}, and {5:e}, plus a search for {2:b}, to demonstrate insertion and traversal.
What you can do after
Evaluate how map ordering and balancing reduce search work compared with linear container scans.

Read how Learn C++ by Example explains binary tree →

Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

A tree data structure in which each node has at most two child nodes.

How it is used
Uses binary trees to partition data while training gradient-boosting models.
How deep it goes
Explains feature scanning, threshold evaluation, objective scoring, and histogram acceleration, but not complete tree construction.
Examples
Demonstrates exhaustive and 256-bin histogram splits on latitude data using Python listings.
What you can do after
Diagnose split-search costs and apply histogram-based candidate reduction for large numeric datasets.

Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains binary tree →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.