English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Traversal of a tree is simple. There may be inorder, preorder, postorder traversals of a tree.

I want to know how to traverse a forest in which there may be several trees?

2007-03-05 02:04:19 · 2 answers · asked by davidkwuman 1 in Computers & Internet Programming & Design

2 answers

u need to apply the same logic there ... traversing a forest can be made an easier task by designing a program for the respective traversals nd then appying them to ur inputs rather than cracking ur head n actually getiing into the logic of traversals...i mean performing traversals on a forest..after all programs r meant to make ur task easier..nd do let me know if u want the programming details regarding the traversals...u can even use breadth first ssearch nd deapth first search to do the same..

2007-03-05 02:36:35 · answer #1 · answered by snazzy 2 · 1 1

here is my version of your's slightly replaced you may reproduction some or despite. Eerie silence dosed the air, the only sounds have been the echo's Trent's footsteps on the woodland floor snapping twigs. The wind replace right into a delicate breeze rustling the leaves above and caressing his face. Breeze started out to %. up velocity blowing swifter and swifter, Tren ought to take heed to the timber whistled in a low pitch melody, leaves fell crunching as they hit branch after branch until eventually finally coming to kick back on the woodland floor. After a short 2d the wind died down a lone owl hooted, it rather is voice bouncing each which way,and this replace into the way of the woodland, his woodland.

2016-12-18 15:40:22 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers