Okay so right now I have a program that is running. It makes a tree and each tree has a linked list attached to it.
The tree is somewhat binary but in a hierarchy form so its not in the correct number order. Basically each node is referred to as a "costcenter" and each costcenter has a linked list which are expenses which has a name and an amount.
It puts the tree and linked list together right now but im brainstorming on the second output. It outputs one just by adding all expenses up in the list and displaying it by the node - if the nodes is under another node the node above it gets the amount as well. There are lots of ways of doing the second output but im trying to find one where its fast and doesn't require much I was thinking somewhat recursive... either way whats your opinion on the fastest way to do this one? It may require a list just because its in a hierarchy form.


LinkBack URL
About LinkBacks






Reply With Quote






Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum