Implementation of Trees


Problems 2

Problem : Use our array implementation to draw the tree that corresponds to the following array:


Problem : What is problematic about the following tree?


#define EMPTY	0

int array[] = {0, 1, EMPTY, 1, 4, 0, EMPTY};


Problem : If you know that a node corresponds to index i the array, what would be the index of its parent?


Take a Study Break

Green YOUR SCHOOL!

Click here to get involved with dosomething.org!

John Krasinski's BIG MIRACLE

Click to watch the trailer and read exclusive star interviews!

Do you like Anna?

Read Dear Albert... from ANNA's perspective!

BATTLESHIP, the movie

Here's why we're super jazzed about it.

Do energy juices actually work?

Our blogger puts 'em to the test!


The Book

Cover image

Read What You Love, Anywhere You Like

Get Our FREE NOOK Reading Apps