G11 Computer Science at The Dragon Academy

Class' Summary Thu 25 Apr 2019

Worked out first exercise of Trees: Given N nodes, what are #levels / Height of 1)binary 2)ternary and 3)degree 5 trees.

Today we solved the case of a binary tree. Let's see: Each level i contains at most \(2^i\) nodes (a full binary tree). If we have \(k\) such levels, the total number \(N\) of nodes is: \(N=2^{1-1}\, +\, 2^{2-1}\, +\, \dots\, +\, 2^{k-1}\) . We need then to find out how to add such a sum (it's called a geometric series).

As usual, the slides can be found at http://mmsantos.sdf.org