Computer Science Fundamentals
Algorithms
Subjective
Feb 26, 2013
What are the methods of representing a syntax tree?
Detailed Explanation
i. Each node is represented as a record with a field for its operator and additional fields for pointers to its children.
ii. Nodes are allocated from an array of records and the index or position of the node serves as the pointer to the node.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts