This thesis studies the interaction of selfish economic agents in three differentsettings. In the first setting, they have to take decisions daily based on information they got in the past, and learn from what happened before how to take good decisions based on feedback they get after taking a decision. Studied are algorithms that guarantee the agents to take good decisions over the long run. In the second setting, traffic network problems are studied. An algorithm is studied that takes into account the commuting paths and desired arrival time of the commuters to give them a recommendation of their departure time and the path they should choose in order to reduce the traffic, and in such a way that the commuters have to follow the recommend...