InsertionSort and BinarySearch
InsertionSort and BinarySearch
TYPE TNode
DECLARE Left : INTEGER
DECLARE Right : INTEGER
DECLARE Data : STRING
END TYPE
FOR x ß 0 TO 5
Tree[x].Left ß x+1
NEXT
END FOR
Tree[6].Left ß Null
ADDING TO A TREE
IF TurnedLeft=TRUE
Tree[Prev].LeftßNew
ELSE
Tree[PRev].RightßNew
END IF
END IF
ELSE
OUTPUT “No more space”
END IF
END PROCEDURE