Explore BrainMass
Share

Heaps, Binary Files and Bit Sets

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

Draw the complete tree corresponding to each of the following vectors:

(a). int a[8] = (15, 9, 3, 6, 2, 1, 4, 7)
int aSize = sizeof(a)/sizeof(int);
vector<int> v(a, a + aSize);

(b). string b = "array-based tree";
Vector<char> w(b.c_str(), b.c_str()+b.length());

© BrainMass Inc. brainmass.com March 21, 2019, 6:51 pm ad1c9bdddf
https://brainmass.com/computer-science/trees/heaps-binary-files-bit-sets-270722

Solution Summary

This posting contains answers to the given questions.

$2.19