Array-Based Tree, Heaps, Binary Files and Bit Sets
Not what you're looking for?
Assume that v is an array-based tree with 70 members.
(a). Is v[45] a leaf node?
(b). What is the index of the first leaf node?
(c). What is the parent of v[50]?
(d). What are the children of v[10]?
(e). Does any item have exactly one child?
(f). What is the depth of the tree?
(g). How many leaf nodes does the tree have?
Purchase this Solution
Solution Summary
Array-based tree, heaps, binary files and bit sets are examined.
Solution Preview
An array-based tree with 70 members has the following structure.
level 1: v[0]
level 2: v[1], v[2]
level 3: v[3], v[4], v[5], v[6]
level 4: v[7], v[8], v[9], v[10], v[11], v[12], v[13], ...
Purchase this Solution
Free BrainMass Quizzes
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
C# variables and classes
This quiz contains questions about C# classes and variables.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
C++ Operators
This quiz tests a student's knowledge about C++ operators.