Let be the number of interior (non-leaf) nodes in the tree (1594 in our study). Let be the height of the tree, the maximum number of AS-hops for any path (15 in our study). Let be the maximum number of proxy caches placed (50 in our study).
Each AS is visited exactly once to compute his cost matrix. The total number of cost matrices computed is .
Each cost matrix has rows. The total number of cost rows computed is .
Each of those rows is a combination of the contributions from all of the children of the node. Let be the number of children of node . As previously noted, there will be rows at node . Each of those rows will have items representing values from 0 to pebbles. The initial local cost matrix of the parent will be combined times with other matrices (once for each child).
After several simple optimizations, our test run with a tree of 21 backbone nodes totaling 6395 nodes had 69,486 row combinations in the 6395 matrix combinations.