**a) Write a function with one positive int parameter called n. The function will write 2^n-1 integers (where ^ is the exponentiation operation). Here are the patterns of output for various values of n:
n=1: Output is: 1
n=2: Output is: 1 2 1
n=3: Output is: 1 2 1 3 1 2 1
n=4: Output is: 1 2 1 3 1 2 1 4 1 2 1 3 1 2 1
And so on. Note that the output for n always consists of the output for n-1, followed by n itself, followed by a second copy of the output for n-1.
b) Given a binary tree with 3000 nodes on the right subtree, and 100 nodes on the left subtree (3101 total nodes), determine how many nodes are processed before the root node for each of the three kinds of tree traversals (pre-order, post-order, in-order) presented in chapter 9.
c) Insert the following nine integers (in order presented below) into a Heap (according to chapter 10 rules) and draw the final resulting concept of the tree structure (e.g. diagrams as in book).
4 8 2 9 1 3 5 6 7
d) Insert the same integers as above into a B-Tree with MINIMUM set to 2.
e) Remove the 5 from this B-Tree and redraw the resulting B-Tree.
I am providing a word document describing what needs to be done for assin #2).
I am also providing a word document that gives a example of a node tree and has the complete outline for the **Assign #2)** If you have any questions please let me know.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
I would like you to use the newest JAVA which is JDK2 5.0. If there are any questions please ask.