



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
During the course work of Thinking Like Computers, we study the key concept of artificial intelligence. The main points in these lecture slides are given as:Implementing Algorithms, Javascript Programming, Combination of Random, Decision Games, Multiplayer Decisions, Game Theory, Nash Equilibrium, Prisoner’ Dilemma, Utility of Strategies, Zero-Sum Games
Typology: Slides
1 / 5
This page cannot be seen from the preview
Don't miss anything!




Each round is the Prisoner’s Dilemma: the program chooses C or D At each round, the program has previous choices (both players) stored, and can use that information to choose C or D Play 200 rounds
All-D: Always choose D. Random: choose C or D randomly. Tit-for-Tat: first round, choose C; later, at round t, do what your opponent did on round t-1.
Some variation of the Tit-for-tat Combination of random and Tit-for-tat Switch/repeat strategies from time to time
Preferences Utilities Decisions (Rationality) Learning
1 years 1 years
0 years 5 years
A cooperates
5 years 0 years
2 years 2 years
A defects
B defects B cooperates
What should A (or B) do?
3 3
5 0
A cooperates
0 5
2 2
A defects
B defects B cooperates
The Utility (not the same as years in prison)
As described earlier …
The natural is “red in tooth and claw”?
Given up your seat on the bus to … Altruism? Or being afraid of punishments?
Consider a public transport system relying on every one honestly paying (not verified)
1980 Many strategies were submitted
All-D Random Tit-for-Tat (the overall winner, only 5 lines) …
Do not be envious. Do not be the first to defect. Reciprocate cooperation and defection. Do not be too clever!