Terrence Brannon wrote:
HOWEVER. isn't a tree the most general data structure? You can make lists out of trees and make arrays out of lists. Therefore the most fundamental and broadly applicable data structure is a tree and not an array.
You assertion is incorrect in that tree can be processed using array. In the book "Applied Mathematics for Programmers" 1984,1986 K.E.Iverson, there is a chapter on "DIRECT GRAPH AND TREE".
At the end of the chapter, it implements a Lukasiewicz parser in APL. -- regards, bill ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
