<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316776#M74504</link>
    <description>Yes. Would welcome any suggestions. My mind is in a rut (it's trying to use mapcar and process linked lists).</description>
    <pubDate>Tue, 07 May 2002 11:43:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-05-07T11:43:26Z</dc:date>
    <item>
      <title>Excel, VBA, and trees</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316770#M74498</link>
      <description>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 &amp;gt; 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 &lt;BR /&gt;
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, &lt;BR /&gt;
dynamic design for engineers that are familiar with Autocad, and to encourage those who aren't to become so. &lt;BR /&gt;
Thank you for your consideration.</description>
      <pubDate>Fri, 03 May 2002 09:46:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316770#M74498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-03T09:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Excel, VBA, and trees</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316771#M74499</link>
      <description>And, yes, I suppose it would help to actually attach the file.</description>
      <pubDate>Fri, 03 May 2002 09:51:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316771#M74499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-03T09:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Excel, VBA, and trees</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316772#M74500</link>
      <description>&lt;DIV&gt;&lt;FONT size="2"&gt;Tom,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;Have you gotten any off-line help on this yet?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;-- &lt;BR /&gt;R. Robert Bell, MCSE&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.AcadX.com"&amp;gt;www.AcadX.com&lt;/A&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Tom_Brabant" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:tom_brabant_jr_@hotmail.com"&amp;gt;tom_brabant_jr_@hotmail.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f0da241.-1@WebX.maYIadrTaRb"&amp;gt;news:f0da241.-1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;I've &lt;BR /&gt;
  been working with trees in Autocad/Autolisp, evolving utilities for &lt;BR /&gt;
  telecommunications design. Trying to migrate some of the work to Excel where &lt;BR /&gt;
  design engineers and can manipulate the forest structures and node attributes. &lt;BR /&gt;
  Enter VBA. Presently attempting to formulate an algorithm to sum up (towards &lt;BR /&gt;
  the root) a tree. Got some wonderful help doing this in LISP from a Richard D. &lt;BR /&gt;
  Howard a year or so ago in a post called "percolating sums up tree". I am very &lt;BR /&gt;
  new to VBA (as you will see if you view attached excel file and its VBA &lt;BR /&gt;
  module), and am finding this task rather daunting. My algorithm is flawed &lt;BR /&gt;
  (overcounts intermediate nodes), and even if it worked it is &amp;gt; O(n^2) and &lt;BR /&gt;
  my instincts tell me it could be done closer to nlog(n). I would greatly &lt;BR /&gt;
  appreciate any help at all; comments about algorithms, suggestions about data &lt;BR /&gt;
  structures, and certainly criticism about my VBA coding. If the relevance of &lt;BR /&gt;
  this issue &lt;BR /&gt;to this newsgroup is in question, I must add that I ultimately &lt;BR /&gt;
  intend to rehitch parts of this effort to AutoCad through objectDBX to &lt;BR /&gt;
  facilitate interactive, &lt;BR /&gt;dynamic design for engineers that are familiar &lt;BR /&gt;
  with Autocad, and to encourage those who aren't to become so. &lt;BR /&gt;Thank you &lt;BR /&gt;
  for your consideration. &lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 07 May 2002 06:14:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316772#M74500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-07T06:14:26Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316773#M74501</link>
      <description>No, Robert. But I think I've distilled a better way to ask the question. Let the global array tree(j) of type integer contain a tree in the following fashion. Each node of the tree has an index j and each tree(j) contains the parent of j. Let the root be its own parent; tree(&lt;ROOT&gt;)=&lt;ROOT&gt;. Let a second global array descendents(j) of type integer be the same size as the tree array. Compose a function such that upon application to tree, will have the side effect of populating each descendents(j) with the total number of descendents of node j, including j as a descendent of itself.&lt;/ROOT&gt;&lt;/ROOT&gt;</description>
      <pubDate>Tue, 07 May 2002 10:15:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316773#M74501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-07T10:15:11Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316774#M74502</link>
      <description>For instance if tree(1)=1, tree(2)=1, tree(3)=2, tree(4)=2, then&lt;BR /&gt;
descendents(1)=4, descendents(2)=3, descendents(3)=1, descendents(4)=1</description>
      <pubDate>Tue, 07 May 2002 10:20:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316774#M74502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-07T10:20:49Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316775#M74503</link>
      <description>&lt;DIV&gt;&lt;FONT size="2"&gt;So do you still need help with code? (I "got" your example, &lt;BR /&gt;
after serious brow furrowing...)&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;-- &lt;BR /&gt;R. Robert Bell, MCSE&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.AcadX.com"&amp;gt;www.AcadX.com&lt;/A&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Tom_Brabant" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:tom_brabant_jr_@hotmail.com"&amp;gt;tom_brabant_jr_@hotmail.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f0da226.3@WebX.maYIadrTaRb"&amp;gt;news:f0da226.3@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;For &lt;BR /&gt;
  instance if tree(1)=1, tree(2)=1, tree(3)=2, tree(4)=2, then &lt;BR /&gt;
  &lt;BR /&gt;descendents(1)=4, descendents(2)=3, descendents(3)=1, &lt;BR /&gt;
descendents(4)=1&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 07 May 2002 11:03:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316775#M74503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-07T11:03:44Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316776#M74504</link>
      <description>Yes. Would welcome any suggestions. My mind is in a rut (it's trying to use mapcar and process linked lists).</description>
      <pubDate>Tue, 07 May 2002 11:43:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-vba-and-trees/m-p/316776#M74504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-07T11:43:26Z</dc:date>
    </item>
  </channel>
</rss>

