- Joined
- Jun 24, 2014
- Messages
- 172
- Thread Author
- #1
So I'm designing the tree and trying to balance it however somehow I'll end up with repeated nodes.
Let me illustrate:
Now, someone may say "well, make 'inventory full?' the root node." This was my first approach, but then on later subnodes then "inside area?" will be asked, both on left and right childs of the root node.
Also, due to the nature of the bot, reaching subtree O should be priority, regardless if the inventory is full or not, so if you're inside the area, and inside the inner area, whether inventory is full or not, some things must be done. If another approach is taken, then some extra logic that shouldn't be needed would be added.
Having said that, will I be sent to the guillotine for having some nodes that check the same thing and subtrees that are almost identical?
Let me illustrate:
Now, someone may say "well, make 'inventory full?' the root node." This was my first approach, but then on later subnodes then "inside area?" will be asked, both on left and right childs of the root node.
Also, due to the nature of the bot, reaching subtree O should be priority, regardless if the inventory is full or not, so if you're inside the area, and inside the inner area, whether inventory is full or not, some things must be done. If another approach is taken, then some extra logic that shouldn't be needed would be added.
Having said that, will I be sent to the guillotine for having some nodes that check the same thing and subtrees that are almost identical?
Last edited: