Closed vkitchen closed 5 years ago
Traversing trees is a relatively expensive operation. There are alternative tree structures such as using an array which might offer performance gains
Using an array is unsurprisingly more expensive as enough memory has to be allocated for the whole tree and many trees are lopsided leading to large allocation for few nodes
Traversing trees is a relatively expensive operation. There are alternative tree structures such as using an array which might offer performance gains