o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Tree traversal without recursion -

Is it possible to traverse (ie visiting every node) a tree without using recursion? If yes, could you please outline the algorithm?

[sorry I inadvertently posted it twice]

 

Tree traversal without recursion -
Is it possible to traverse (ie visiting every node) a tree without using recursion? If yes, could you please outline the algorithm? [sorry I inadvertently posted it twice]


DOM XML tree traversal -
Folks, I've been trying server side tree traversal examples and none of them see to work with my XML document. Its well formed, has only attributes - no elements. I want to be able to specify a node (any node) and get all nodes below that node (not those on its level) returned.


Returning Recursive values -
I know this might be a simple recursion question to some of you but I'm just a beginner to VB and to the whole programming world so please bear with me if my question seems a little bit dumb.... Lets say you have a search tree structure and you want to traverse the the tree to get a v


VB Tree -
Can anyone tell me how to make pre order traversal in a tree view control. I tried with x.firstsibling.index to x.lastsibling.index but problem is it often visits same node more than once because of index.


WHen to use recursion -
Hi, According to my book it says that interation (loops), in many cases, can be use instead of recursion. But in some cases, recursion mimics the problem better. My question is simply when is a good time to use recursion and if possible provide an example. note: I am more comfor


tree view population using recursion -
hi, i have a table which has references to itself CategoryID CategoryName ParentCategoryID ActiveState 1 Cars 0 1 2 Mercedes 1 1 3 E-C


My Recursion Hell - By wossname -
How do you traverse a many-to-many linked tree searching for a known value? Each of my objects has a list of other objects it is connected to, the links are 2 way. I am having a problem coming up with an algorithm that will efficiently scan this kind of connected tree without overf


Need Help with Simple Recursion! -
I'm trying to get this simple recursion method figured out and I'm having a tough time. What this function is supposed to do is accept 2 arguments into parameters x and y and then give back the value of x times y. How do I do this?? I know I have to use addition somehow since it is


[2008] Help trying to link tree controls -
Hi, I am localizing a set of xml files and translators went and screwed up some of the tags. Problem is, they have deleted or added complete tag pairs in some cases, so the XML still validates. I need to compare only the tags in the files (not the content) so off the shelf file c


how to use recursion -
how do you use recursion in VB, l want to code a function that will call itself Many thanks in advance


VERY simple recursion example -
This small program demonstrates another use of recursion. I welcome any comments. If anyone sees a more efficient use of the framework, let me know..I'm all about learning.


FSO recursion -
I need to dig down though directories to get *.mp3 files (I would like to use recursion) I cannot seem to get past the 1st call. It is giving me a buncha crap (sorry, I am frustrated!) Can you help me? I can post, but I would like a new perspective. thx


Tree Traversal -
hi all, i have a problem, please help me out to solve this issue, i have to traverse a Tree from Given Root and i have to count its Left Childs And Its Right Childs. I have a database which stores this all information. A Root can have only TWO Childrens. Please tell me how


Graph Tree (NOT treeview) -
Hello. i want to make a graph tree. this means nodes connected with each other as a tree (not binary tree) and the user can see this tree .each node could have a picture or something else. is there any code for this ? thanks


Graph Matrix - Please help -
Hello, I am having a software engineering course in which I learned about the Graph Matrix that it is used to calculate Cyclomatic Complexity and following things. 1) The probability that a link will be executed. 2) The processing time expanded during traversal of a link. 3) Th


Recursion Test -
Recursion Test


Hmm... interesting point... -
To define recursion, we must first define recursion...


how to create tree structure in vb -
hi, how can i create a tree data structure in vb. i m not talking about tree view. i want to store some data in the tree and then traverse that tree. i want to use the tree for storing arithmetic expression. thanx.


[02/03] Tree -
Hi, Hope you can help I am looking for some help. What i plan to do is to create an application where on the left pane is a tree. What i would like is to have the tree configurable i.e. reading in from a file where the items are, like if setting1 is C:\ then the first tree item woul


shortest path with recursion - FEEDBACK -
Hi there, I want to build a shortest path algorithm using recursion. This path must go from point(0) to every point and back to point(0). I know other methods exist already, but I would really like to learn how to use recursion and need a little help getting started. Say you hav


Selecting a treenode without recursion -
Is there a way to programatically select a treenode in a treeview without recursion? Say if I know the treenode.fullpath property? thanks kevin


"RESOLVED" Recursion In VB -
Hey, Any one please tell me whether recursion is possible in VB or not. If yes then what are the specific conditions for that. bye.....


Recursion for AI in checkers -
I have to make an AI for checkers, and my teacher suggest recursion. I got a short lesson on it, but I really don't understand it, except for the fact that it is a function that calls itself over and over. I would appreciate as much information that would be as easy as possible to unde


Recursion for AI checkers... -
I have to make an AI for checkers, and my teacher suggest recursion. I got a short lesson on it, but I really don't understand it, except for the fact that it is a function that calls itself over and over. I would appreciate as much information that would be as easy as possible to unde


Tree control -
I am trying to create a control that functions as a tree control, but also has additional fields available for display. Since you cannot add columns to a tree, i should apparently be using some sort of other control, or perhaps a combination of controls. I was considering using both a


Combination/Recursion Problem -
can anyone please help me the code to do this: a user is prompted to input n numbers (e.g. 4 numbers - 5,4,9,1) output: 5 4 9 1 54 59 51 49 41 91 549 541 591 491 i got myself confused in most part of my recursion..


Left recursion -
How do you deal with left recursion of for instance expressions such as a-b-c this shows how to eliminate left recursion http://courses.essex.ac.uk/lg/LG511/.../index_11.html by making it right recursive. but then a-(b-c) would be a misinterpretation. same would (a^b)^c be of a^b^


Help on recursion loop -
I've spend many days to write a recursion loop but of no success. Can you guy help me out please. The loop should do these. f4 = 0 f3 = 270 + 0*270 + f4 f2 = 140 + [0*140] + f3 f2 = (270 + 140) + [1*270 + 0*140] + f4 f1 = 360 + [0*360] + f2 f1 = (360+140) + [1*140 + 0*360


CGI Timeout in PHP -
Hi, I'm having problems with mySQL+PHP stuff... My problem is next kind of Have one table where i'm storing users which are related to each other like tree foundation. So, via php i'm using recursion function to collect and made tree of users that mach to specify user from begi


Setting the highlighted tree node -
I'm using a tree node in my program and I want to save which node is active in the tree to the registry. Then when the program is run again the tree automatically opens to that node. Any ideas? Searching hasn't helped very much. I can do the registry in out stuff but cant get t


AVL Tree in VB6 -
Anyone have a sample of code for an AVL tree structure in VB? It would be a simple tree of numbers or strings. thanks


OOPs!!! -
Well, it's my first time of trying OOP. I just want to know how to create BINARY tree. I know it in pascal, but not in VB! it should be something like: Code: type tree data as string rightX as ... leftX as ... ..... end type sub main() dim a as tree dim b as tree


Tree-View -
In a Tree-View I have a list of my Network places. My Workgroup and computere. I load this in the form Load. Now I vill make it so if I click on the Workgroup I refress the tree an se if some new computeres are started and if some are closet then add / remove them from the tree.


AVL Tree in arrays -
I am working on a little side progie and would like to use an AVL tree. Anyone know of a code example for height balancing an binary search tree (aka AVL tree) implemented in an array? Just looking for a quick example/working code with an array implementation in VB before I try to


making an expression tree -
hi, i want to make an expression tree. but i don't know how. can any one provide me with an algorithm. i need to store the boolean expression in the tree so that i can use it to draw the circuit diagram of the expression by traversing it in post order.i know the traversing p


Binary Tree... Due tomorrow! (Solved) -
Hello there guys, here I am again with the Old Binary Tree. No, don't worry... I am not going to ask something complex this time. I have already designed the complex structure and it works fine. The main problem is the Graphic procedures. I have tried to figure out a method to gr


- [2008] - Recursion Question -
I know a recursive method is something that calls itself with different arguments. But I'm slightly confused on how a recursive method would be written (the syntax). If anyone can think up a simple example of a recursive method, that would help me understand recursion much better.


Database Recursion -
Does anyone have any good tips or can point me to any good articles on optimised recursion of database information. I have hierarchy information stored in a database and I have a function that has to cycle through this information recursively. It has worked up to now however I have jus


Node Count, Leaf Count & Tree Height -
Hi; I am new to this C++ and now, I need some help with Binary Search Tree. So, Can somebody help me to write the following functions? 1. getNodeCount(): Returns the number of nodes in the tree. 2. getLeafCount(): Returns the number of leaf nodes in the tree. 3. getTreeH


[2005] One Way To Handle Unwanted Recursion -
A while back I posted asking if there was a clean way of stopping unwanted recursion in a block of code. The conclusion that we came up with was to use "global" variables to state whether the operation had already been called. The problem with that approach is that if you h