Output summary: <output>:= <success>|<error> <success>:=item transfer complete <error>:=<SiteDoesNotExist>|<SiteNotMapped>|<EmptyInventory>
Output summary: <output>:= <success>|<error> <success>:=everything transfered <error>:=<SiteDoesNotExist>|<SiteNotMapped>|<EmptyInventory>
Output summary: <output>:= <success>|<error> <success>:=everything transfered <error>:=<SiteDoesNotExist>|<SiteNotMapped>|<EmptyInventory>
Output summary: <output>:= <success>|<error> <success>:=consolidated heap <error>:=<SiteDoesNotExist>|<SiteNotMapped>|<EmptyInventory>
\n).
The heap is to be printed in the following manner:
a) output left parenthesis
b) beginning with the min value in the f-heap, for each binomial heap in the forest,
output the root value
output the roots of its child subtrees enclosed in parentheses
repeat recursively until all subtrees have been printed
c) output right parenthesis) output a new line (\n)
This is a standard linear respresentation of a forest of general trees that can be used to serialize such structures. It will allow us to verify that your fibonacci heap satisfies the constraints for such structures, regardless of the specific ordering of values in the f-heap.
SAMPLE FIBONACCI HEAP
7-----------52--------------18
| |
| |
24-----17---30 |
| | 41---39
| | |
26--46 23 |
| |
| 44
|
35
( 7 ( 24 ( 26 ( 35 ) 46 ) 17 ( 23 ) 30) 52 18 ( 41 ( 44 ) 39 ) )
You must have at least one value within each set of parentheses. This will be called on the MIN element. This means printing will begin with the min element.
Output summary: <output>:= <success>|<error> <success>:=<PrintRow> <PrintRow>:=( PrintEachNode ) <PrintEachNode>:=<NodeDisplay> <PrintEachNode>| <NodeDisplay> <NodeDisplay>:= <value of node> <PrintRow>| <value of node> <error>:=<HeapEmpty>