EmptyTreePURPOSEChecks if a BTree is empty.
SYNOPSISfunction e=EmptyTree(T)
DESCRIPTIONChecks if a BTree is empty. Returns true for empty trees (i.e., trees with depth 0). See also BTree. CROSS-REFERENCE INFORMATIONThis function calls:SOURCE CODE0001 function e=EmptyTree(T) 0002 % Checks if a BTree is empty. 0003 % 0004 % Returns true for empty trees (i.e., trees with depth 0). 0005 % 0006 % See also BTree. 0007 0008 e=(T.height==0); |