The NEM Problem: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
Imagine you sit in a cave with both [[iron ore]] and [[coal]] to harvest inside. You and your friend start harvesting at the same time. There are two bags, one with iron ore and the other one with coal. At some point you will look into the bags and count. <br /> | Imagine you sit in a cave with both [[iron ore]] and [[coal]] to harvest inside. You and your friend start harvesting at the same time. There are two bags, one with iron ore and the other one with coal. At some point you will look into the bags and count. <br /> | ||
The easiest thing to do would be to bring both bags together into one and start mixing. But here begins the problem. Your inventory is empty half of the time. Now think about this: Each time you walk you take as much iron ore to the coal and as much coal to the iron ore as you can carry. In the end, the right amount of ingredients to make iron or steel bars have to be in the bags. You also want to bring [[Fire Essence|Fire Essences]] and [[food]] to both bags. <br /> | The easiest thing to do would be to bring both bags together into one and start mixing. But here begins the problem. Your inventory is empty half of the time. Now think about this: Each time you walk you take as much iron ore to the coal and as much coal to the iron ore as you can carry. In the end, the right amount of ingredients to make iron or steel bars have to be in the bags. You also want to bring [[Fire Essence|Fire Essences]] and [[food]] to both bags. <br /> | ||
Every time you bring FE and Food | Every time you bring FE and Food into the cave you also take iron ore and coal from the bag and bring it to storage. The question is, how much iron ore and coal needs to be harvested in each place ? Let the carry capacity of the mule be variable. <br /> |
Revision as of 20:49, 4 June 2015
Imagine you sit in a cave with both iron ore and coal to harvest inside. You and your friend start harvesting at the same time. There are two bags, one with iron ore and the other one with coal. At some point you will look into the bags and count.
The easiest thing to do would be to bring both bags together into one and start mixing. But here begins the problem. Your inventory is empty half of the time. Now think about this: Each time you walk you take as much iron ore to the coal and as much coal to the iron ore as you can carry. In the end, the right amount of ingredients to make iron or steel bars have to be in the bags. You also want to bring Fire Essences and food to both bags.
Every time you bring FE and Food into the cave you also take iron ore and coal from the bag and bring it to storage. The question is, how much iron ore and coal needs to be harvested in each place ? Let the carry capacity of the mule be variable.