Research Article
Quality Measures for Improving Technology Trees
Algorithm 2
A function used by approximate_OCs for handling an individual node and making the necessary additions to the next node layer.
(1) function handle_node(): | (2) | (3) for each in do | (4) | (5) true | (6) for each incoming edge of with ABI do | (7) | (8) if then | (9) | (10) else | (11) false | (12) if then | (13) + 1 | (14) | (15) | (16) if then | (17) | (18) | (19) | (20) if then | (21) true | (22) for each in do | (23) if not then | (24) | (25) else | (26) | (27) for each in do | (28) if not then | (29) |
|