sábado, 17 de janeiro de 2009

sprint!



siga lá dar uma voltinha de bike?!

sexta-feira, 16 de janeiro de 2009

O Fantasma do Francês

Não é que, por diversos motivos, tenho uma pequena diminuição ( de alguns para nenhum ) da frequência de Post's ( de alguns para nenhum ) e assim crio um monstro?!?
Ao ver o mais recente Post do meu grande amigo Apátrida, principalmente o tamanho (até porque por isso mesmo não o li até ao fim) sabem quem é que me fez lembrar...? - NINGUÉM!! Ninguém põe um Post, que ainda para mais não foi ele mesmo que escreveu, daquele tamanho num blog! Há muito tempo que se inventou uma bela ferramenta que se usa no World Wide Web que se chama links!!!
Tudo bem que eu tenho por habito estender-me nos comentários que custumo escrever, mas ele abusou!
Para aqules que criticaram, ainda que no bom sentido, a minha ausência, aqui estou eu de volta... Com frases inteligentes e igual a mim mesmo ( o Apátrida que o diga ), pois como num momento de inspiração resolvi dizer, "Quem não tem nada para dizer mais vale estar calado!"

"Um pouco de mim para todos vós!" - Janequisses!
Um abraço meus amigos

quinta-feira, 15 de janeiro de 2009

Game Theory in The Dark Knight: the opening scene

The Dark Knight: the opening scene (spoilers)">Game Theory in The Dark Knight: the opening scene (spoilers)

19 August 2008 | by Presh Talwalkar

Cite / Print this article Cite / Print this article

Read more Game Theory (new article every Tuesday)

The newest Batman movie The Dark Knight absolutely stunned me. Not since Dr. Strangelove has a movie contained so much game theory. A lot of people have focused on a scene near the end of the movie. But there is so much more to see. In fact, I’ll be so bold as to suggest the following: the entire film is a sequence of games and an illustration of strategic thought.

There is a lot of creativity going on. Game theory is illustrated even at times when it’s not clear what the “game” really is, like the opening bank robbery scene. This scene is one of the most powerful movie openings and it foreshadows the chaos and tempo that will follow. Let’s take a moment to analyze it in detail.

(Warning: this article contains spoilers and covers roughly the first five minutes of the movie. The thoughtful comments contain major spoilers so only read them if you’ve seen the movie.)

How can we split up the stash?

The movie starts out with a bang. An aerial attack begins when a window shatters on a skyscraper, allowing two robbers to glide across a zip-line on to a bank’s roof. On the street-level, a car screeches to a stop to pick up the last member of the ground attack.

The first spoken words concern the topic of strategy. These lines introduce the Joker’s character and they foreshadow the punch and counterpunch of the entire movie. The robbers in the car explain the job and how the loot will be divided. It’s apparent they are not happy with the plan:

Driver: Three of a kind. Let’s do this.

Passenger side: That’s it—three guys?

Driver: Two guys on the roof. Every guy gets a share. Five shares is plenty.

Passenger side: Six shares. Don’t forget the guy who planned the job.

Driver: He thinks he can sit it out and still take a slice. I know why they call him the Joker.

The robbers don’t like that the Joker gets an equal share for doing unequal work. Their complaint raises the issue of fair division, which is central to game theory. In fact, fair division is the first problem that game theory addressed historically. The problem appears in the Babylonian Talmud about how creditors should divide an estate. The text offers a mysterious solution that had baffled scholars for over 2,000 years. It was only very recently that a Nobel Laureate economist deciphered the answer using the tools of coalitional game theory. Let me tell you, the answer is fascinating, and yet surprisingly easy to understand.

Fair division is about understanding incentives and strategic thought. How can you trust self-interested people? How can you achieve cooperative outcomes with diametrically opposed motives? Such ideas have been applied to important areas such as nuclear disarmament and labor negotiations. But they are even applicable to mundane situations, like when you’re eating out. I hate splitting the bill when I ordered a less expensive item (don’t you?). Understanding game theory can bring us to a better answer (finally, a return to splitting the bill fairly).

Ultimately, the robbers accepted an equal division for unequal work. Given that, should they have believed things would have gone according to plan? Perhaps they should not have, if they would have considered the incentives and possible landmines about trust. You see, in game theory you do not trust someone because they agree with you on a plan. You trust them because it is in their self-interest to help you.

Had the robbers considered these issues, perhaps their fate would have been different. A little bit of thinking ahead and reasoning backwards would have demonstrated flaws in the plan.

The scene is reminiscent of a popular game theory puzzle about pirates and splitting up treasure. Some of you may have even heard this as a technical interview question. The game offers insights to collective voting and the ability of a leader to buy off votes.

The Pirate puzzle

The game

Three pirates (A, B, and C) arrive from a lucrative voyage with 100 pieces of gold. They will split up the money according to an ancient code dependent on their leadership rules. The pirates are organized with a strict leadership structure—pirate A is stronger than pirate B who is stronger than pirate C.

The voting process is a series of proposals with a lethal twist. Here are the rules:

  1. The strongest pirate offers a split of the gold. An example would be: “0 to me, 10 to B, and 90 to C.”
  2. All of the pirates, including the proposer, vote on whether to accept the split. The proposer holds the casting vote in the case of a tie.
  3. If the pirates agree to the split, it happens.
  4. Otherwise, the pirate who proposed the plan gets thrown overboard from the ship and perishes.
  5. The next strongest pirate takes over and then offers a split of the money. The process is repeated until a proposal is accepted.

Pirates care first and foremost about living, then about getting gold. How does the game play out?

The solution

At first glance it appears that the strongest pirate will have to give most of the loot. But a closer analysis demonstrates the opposite result—the leader holds quite a bit of power.

The game can be solved by thinking ahead and reasoning backwards. All pirates will do this because they are a very smart bunch, a trait necessary for surviving on the high seas.

Looking ahead, let’s consider what would happen if pirate A is thrown overboard. What will happen between pirates B and C? It turns out that pirate B turns into a dictator. Pirate B can vote “yes” to any offer that he proposes, and even if pirate C declines, the situation is a tie and pirate B holds the casting vote. In this situation, pirate C has no voting power at all. Pirate B will take full advantage of his power and give himself all 100 pieces in the split, leaving pirate C with nothing.

But will pirate A ever get thrown overboard? Pirate A will clearly vote on his own proposal, so his entire goal reduces to buying a single vote to gain the majority.

Which pirate is easiest to buy off? Pirate C is a likely candidate because he ends up with nothing if pirate A dies. This means pirate C has a vested interest in keeping pirate A alive. If pirate A gives him any reasonable offer—in theoretical sense, even a single gold coin—pirate C would accept the plan.

And that’s what will happen. Pirate A will offer 1 gold coin to pirate C, nothing to pirate B, and take 99 coins for himself. The plan will be accepted by pirates A and C, and it will pass. Amazingly, pirate A ends up with tremendous power despite having two opponents. Luckily, the opponents dislike each other and one can be bought off.

The game illustrates the spoils can go to the strongest pirate or the one that gets to act first, if the remaining members have conflicting interests. The leader has the means to buy off weak members.

Don’t get caught up in the exact assumptions or outcomes of the game—just remember the basic lesson. In the real world, it might be necessary to buy a vote with 20 gold coins. Nonetheless, the general logic is the same. Here are some of the main insights from the game:

Lessons:

  • Players should think ahead and reason backwards
  • A leader can win by exploiting conflict among weaker members
  • Players derive worth from voting power, and some players can be bought off

The robbery scene in The Dark Knight

The original plan of equal division is flawed. Each robber has incentive to increase his share by killing a fellow team member. Once a member performs his job, he loses his negotiating power and value to the team.

The Joker plays off this conflict by instructing the robbers to take out fellow teammates once their tasks are performed. The game would be different if the robbers were a group and they repeated crimes together—perhaps an even split could be sustainable. But as the movie hints right away with the first backstabbing scene, this robbery will be a one-shot game.

Many of the robbers fail to see they can be victim to the same deceit they pull on others. The second robber on the rooftop is a prime example. After his partner disarms the silent alarm, he quickly kills him and then proceeds to perform his own job. He doesn’t see the same thing could happen to him.

After he disarms the bank vault, he is greeted with a most unpleasant surprise:

Robber: Where’s the alarm guy?

Vault guy: Boss told when the guy was done, I should take him out. One less share, right? [opens the vault]

Robber: Funny. He told me something similar.

Vault guy: What? No! No! [gets shot in the back]

By now it’s clear the Joker wants everyone dead, and minutes later we learn the Joker has been present on the job all along. The plan finishes with two more deaths both involving the escape vehicle bus.

The Joker, being the “strongest pirate,” was able to sequentially bribe the weaker robbers one by one. In the end, he puts a twist on the game by taking the whole pie.

Other strategic elements

There are many other mini-strategy elements during the robbery scene. Here are three that came to my mind:

  • How can a handful of robbers overtake a bank?

In theory, a mob of unarmed citizens should be able to overwhelm a small group of armed robbers. The problem is there will be casualties, particularly for those that act first. Who is going to step out and be the hero? Robbers make sure that people don’t coordinate by forcing them to act sequentially. Any individual that attempts to be a hero will be killed as an example, like the angry bank employee. In the movie, the robbers demonstrate they are willing to use lethal violence by shooting up in the air and taking out the bank cop.

  • Do you trust your teammate?

This is a subtle point and I loved it. The robbers face a small obstacle when an angry bank employee starts firing his shotgun. The robbers duck for cover, and after a few shots, one robber asks the other if the bank employee is out of bullets.

If you watch closely, you’ll see the robber (really the Joker) ponders the question carefully and then nods his head “yes.” The other robber jumps out and is greeted with a bullet that narrowly misses him. Almost immediately the disguised Joker jumps out and disables the bank employee with a round of bullets. The disguised Joker acted so quickly and without fear, almost as if he was now sure the bank employee was out of bullets. Did the Joker lie on purpose earlier to put the other robber in danger? The other robber, not aware it’s the Joker, is furious that he was almost shot and yells back: “Where did you learn to count?” The disguised Joker looks back in scorn.

  • What kind of robber is the Joker?

The cops who arrive on the scene will be stunned. They will see a crime scene with five dead robbers and a bank vault that has been cleaned out. They will likely conclude the Joker is interested in selfish gains, a simple criminal, who wants all the money in Gotham.

As the cops, the mobsters, Batman, and we as the audience experience the complex themes that unfold later in the movie, many of us are left with one thought: if only the Joker were so simple.

The Joker demands money, yes, but is that what he really wants? That’s a question the Joker plays off later in the movie in an explosive fashion.


(http://mindyourdecisions.com)

quarta-feira, 14 de janeiro de 2009

Hum.. bem me pareceu.

Caro suíço,

Venho por este meio demonstrar algo que tenho vindo a defender à já alguns anos.

I rest my case.

terça-feira, 13 de janeiro de 2009

Wild Wild West!!!


Penssava que o Lucky Luck era magro!
...quem diria que um labrego destes...

domingo, 11 de janeiro de 2009

diferentes tipos de necessidades!

I never quite figured out why the sexual urge of men and women differ so
much. And I never have figured out the whole Venus and Mars thing. I have
never figured out why men think with their head and women with their heart.

FOR EXAMPLE: One evening last week, my girlfriend and I were getting into
bed.

Well, the passion starts to heat up, and she eventually says "I don't feel
like it, I just want you to hold me."

I said "WHAT??!! What was that?!"

So she says the words that every boyfriend on the planet dreads to hear...
"You're just not in touch with my emotional needs as a woman enough for me
to satisfy your physical needs as a man." She responded to my puzzled look
by saying, "Can't you just love me for who I am and not what I do for you in
the bedroom?"

Realizing that nothing was going to happen that night, I went to sleep.

The very next day I opted to take the day off of work to spend time with
her. We went out to a nice lunch and then went shopping at a big, big
unnamed department store. I walked around with her while she tried on
several different very expensive outfits. She couldn't decide which one to
take so I told her we'd just buy them all. She wanted new shoes to
compliment her new clothes, so I said lets get a pair for each outfit. We
went onto the jewelry department where she picked out a pair of diamond
earrings. Let me tell you...she was so excited. She must have thought I was
one wave short of a shipwreck. I started to think she was testing me because
she asked for a tennis bracelet when she doesn't even know how to play
tennis. I think I threw her for a loop when I said, "That's fine, honey."
She was almost nearing sexual satisfaction from all of the excitement.
Smiling with excited anticipation she finally said, "I think this is all
dear, let's go to the cashier."

I could hardly contain myself when I blurted out, "No honey, I don't feel
like it."

Her face just went completely blank as her jaw dropped with a baffled
WHAT?"

I then said "honey! I just want you to HOLD this stuff for a while. You're
just not in touch with my financial needs as a man enough for me to satisfy
your shopping needs as a woman." And just when she had this look like she
was going to kill me, I added, "Why can't you just love me for who I am and
not for the things I buy you?"

Apparently I'm not having sex tonight either.

ab

Quem nao gosta de smarties...

quarta-feira, 7 de janeiro de 2009

Biggest check ever


Drawn on a Zimbabwe bank: one quadrillion, seventy-two trillion, four hundred and eighteen billion, three million dollars. Well, that's what you get when the inflation rate is 12.5 million percent.

(vejam o lado positivo na cultura, um feirante Zimbabweano fica a saber que a seguir ao bilião vem o trilião, e a seguir o quatrilião...)(no Zimbábue são todos multi-bilionários, já viram a sorte deles!) (qual Dubai qual quê!)

segunda-feira, 5 de janeiro de 2009

curiosidade...

http://www.serqueira.com.br/simorg.htm

Gato san

Ele é silencioso e mata! Ele é ... o gato NINJA!

domingo, 4 de janeiro de 2009

Em que direcção ela gira?


Façam os vossos comentários ou votação, e depois dou a resposta!

sexta-feira, 2 de janeiro de 2009

Pronto Françês... tá bem!!!... mesmo assim..!!!

2008?



Para quem não se lembra o que se passou em 2008 aqui vai.