Suggestions
Use up and down arrows to review and enter to select.Please wait while we process your payment
If you don't see it, please check your spam folder. Sometimes it can end up there.
If you don't see it, please check your spam folder. Sometimes it can end up there.
Please wait while we process your payment
By signing up you agree to our terms and privacy policy.
Don’t have an account? Subscribe now
Create Your Account
Sign up for your FREE 7-day trial
Already have an account? Log in
Your Email
Choose Your Plan
Individual
Group Discount
Save over 50% with a SparkNotes PLUS Annual Plan!
Purchasing SparkNotes PLUS for a group?
Get Annual Plans at a discount when you buy 2 or more!
Price
$24.99 $18.74 /subscription + tax
Subtotal $37.48 + tax
Save 25% on 2-49 accounts
Save 30% on 50-99 accounts
Want 100 or more? Contact us for a customized plan.
Your Plan
Payment Details
Payment Summary
SparkNotes Plus
You'll be billed after your free trial ends.
7-Day Free Trial
Not Applicable
Renews October 2, 2023 September 25, 2023
Discounts (applied to next billing)
DUE NOW
US $0.00
SNPLUSROCKS20 | 20% Discount
This is not a valid promo code.
Discount Code (one code per order)
SparkNotes PLUS Annual Plan - Group Discount
Qty: 00
SparkNotes Plus subscription is $4.99/month or $24.99/year as selected above. The free trial period is the first 7 days of your subscription. TO CANCEL YOUR SUBSCRIPTION AND AVOID BEING CHARGED, YOU MUST CANCEL BEFORE THE END OF THE FREE TRIAL PERIOD. You may cancel your subscription on your Subscription and Billing page or contact Customer Support at custserv@bn.com. Your subscription will continue automatically once the free trial period is over. Free trial is available to new customers only.
Choose Your Plan
For the next 7 days, you'll have access to awesome PLUS stuff like AP English test prep, No Fear Shakespeare translations and audio, a note-taking tool, personalized dashboard, & much more!
You’ve successfully purchased a group discount. Your group members can use the joining link below to redeem their group membership. You'll also receive an email with the link.
Members will be prompted to log in or create an account to redeem their group membership.
Thanks for creating a SparkNotes account! Continue to start your free trial.
Please wait while we process your payment
Your PLUS subscription has expired
Please wait while we process your payment
Please wait while we process your payment
Like real trees, tree data structures exhibit branching. This carries a number of implications.
First, one must consider the degree of a tree. This refers to the maximum number of children that a node can have. The most common form of tree in computer science is a binary tree, in which each node can have up to 2 children. There are however, ternary trees, with up to 3 children, quaternary trees with up to four children, and so forth.
The next element to consider is the overall size of the tree. There are a number of ways to quantify tree size. One is the longest path from the root node to a leaf node. This is called the depth. If you imagine a tree as having layers, the depth is the number of layers.
When describing a tree, it is often convenient to be able to describe its form in detail. There are several terms which describe the form of trees. A balanced tree is one where all of the leaves of the tree are within one layer of one of each other. For example:
is a balanced tree, whereas the following is not:
A complete tree is a type of balanced tree, except that it has one more additional constraint. In a balanced tree, all leaves are of depth n or n + 1. In a complete tree, all of the leaves of depth n + 1 are further to the left than the leaves of depth n. Furthermore, in a complete tree, all branch nodes (except those at depth n) must have the maximum number of children.
A perfect tree is even more particular. It requires that all of the leaves be of the same depth and that every branching node has the maximum number of children.
Please wait while we process your payment