Message 1 of 7
Excel, VBA, and trees
Not applicable
05-03-2002
02:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been working with trees in Autocad/Autolisp, evolving utilities for telecommunications design. Trying to migrate some of the work to Excel where design engineers and can manipulate the forest structures and node attributes. Enter VBA. Presently attempting to formulate an algorithm to sum up (towards the root) a tree. Got some wonderful help doing this in LISP from a Richard D. Howard a year or so ago in a post called "percolating sums up tree". I am very new to VBA (as you will see if you view attached excel file and its VBA module), and am finding this task rather daunting. My algorithm is flawed (overcounts intermediate nodes), and even if it worked it is > O(n^2) and my instincts tell me it could be done closer to nlog(n). I would greatly appreciate any help at all; comments about algorithms, suggestions about data structures, and certainly criticism about my VBA coding. If the relevance of this issue
to this newsgroup is in question, I must add that I ultimately intend to rehitch parts of this effort to AutoCad through objectDBX to facilitate interactive,
dynamic design for engineers that are familiar with Autocad, and to encourage those who aren't to become so.
Thank you for your consideration.
to this newsgroup is in question, I must add that I ultimately intend to rehitch parts of this effort to AutoCad through objectDBX to facilitate interactive,
dynamic design for engineers that are familiar with Autocad, and to encourage those who aren't to become so.
Thank you for your consideration.