Suggest an editImprove this articleRefine the answer for “What is a binary tree?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**A binary tree** is a data structure in which each node can have at most two children: a left one and a right one. **Key point:** a binary tree is the basis for many search, sorting, and data-storage algorithms.Shown above the full answer for quick recall.Answer (EN)Image**A binary tree** is a data structure in which **each node can have at most two children**: - a **left child** - a **right child** ## Structure ```javascript A / \ B C / \ D E ``` Here: - `A` is the root, - `B` and `C` are children of `A`, - `B` has two children (`D` and `E`), - `C` is a leaf (no children). ## Features - Each node has up to 2 edges (unlike a general tree, where it can have more). - Simplifies the implementation of search, sorting, and traversal. ## Main types 1. **Complete** - every level is filled except possibly the last, and the elements in it are arranged left to right. 2. **Perfect** - every level is fully filled. 3. **Balanced** - the height of the left and right subtrees differs by no more than 1. 4. **Binary search tree (BST)** - the left subtree contains elements smaller than the parent, the right subtree contains larger ones. ## Summary **A binary tree** is a hierarchical structure in which each node is connected to at most two children, which makes it the basis for many search, sorting, and data-storage algorithms.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.