Consider the following algorithm:
ORDER (T) begin if (T!=NULL) then begin ORDER (LPTR(T)) PRINT (DATA(T)) ORDER (RPTR(T)) end return end where LPTR: left pointer RPTR: right pointer T: given tree
This above algorithm is used to:
64.3k questions
77.9k answers
244k comments
80.0k users