• anonymous
using binary trees can you read the tree in -order and post order and pre-order the same way?
Computer Science
  • Stacey Warren - Expert
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
  • schrodinger
I got my questions answered at in under 10 minutes. Go to now for free help!
  • anonymous
Can you read a book forward and backward the same way? Depending on your terms, I would say yes. So the correct answer is probably no.
  • shadowfiend
Yeah, define what you mean by “the same way”. If you mean the same tree, in the same representation, yes. The only thing that changes is the algorithm you use to traverse the tree.
  • rsmith6559
There are thre basic routines used in reading a binary tree. The pre, post an in order traversals basically just call them in different orders.

Looking for something else?

Not the answer you are looking for? Search for more explanations.