An Intersection of Art, Biology, Ethics, and Computer Science," Gustavo Rodriguez-Rivera Computer Science Purdue University

Similar documents
Machine Learning in Iterated Prisoner s Dilemma using Evolutionary Algorithms

What are they? Cellular Automata. Automata? What are they? Binary Addition Automaton. Binary Addition. The game of life or a new kind of science?

Game Theory: From Zero-Sum to Non-Zero-Sum. CSCI 3202, Fall 2010

Game Theory, Continued: From Zero-Sum to Non-Zero-Sum. Problem Set 3 due on FRIDAY!

Homework 5 Answers PS 30 November 2013

DR. SARAH ABRAHAM CS349 UNINTENDED CONSEQUENCES

Spring 2014 Quiz: 10 points Answer Key 2/19/14 Time Limit: 53 Minutes (FAS students: Teaching Assistant. Total Point Value: 10 points.

The extensive form representation of a game

(a) Left Right (b) Left Right. Up Up 5-4. Row Down 0-5 Row Down 1 2. (c) B1 B2 (d) B1 B2 A1 4, 2-5, 6 A1 3, 2 0, 1

Creating a New Angry Birds Competition Track

DECISION MAKING GAME THEORY

Game Theory. Department of Electronics EL-766 Spring Hasan Mahmood

Introduction to (Networked) Game Theory. Networked Life NETS 112 Fall 2016 Prof. Michael Kearns

Lab: Prisoner s Dilemma

A Game Playing System for Use in Computer Science Education

Repeated Games. Economics Microeconomic Theory II: Strategic Behavior. Shih En Lu. Simon Fraser University (with thanks to Anke Kessler)

Virtual Model Validation for Economics

LECTURE 26: GAME THEORY 1

Introduction to (Networked) Game Theory. Networked Life NETS 112 Fall 2014 Prof. Michael Kearns

CPS331 Lecture: Genetic Algorithms last revised October 28, 2016

The Success of TIT FOR TAT in Computer Tournaments

Math 152: Applicable Mathematics and Computing

Contents. MA 327/ECO 327 Introduction to Game Theory Fall 2017 Notes. 1 Wednesday, August Friday, August Monday, August 28 6

Game Theory: The Basics. Theory of Games and Economics Behavior John Von Neumann and Oskar Morgenstern (1943)

ECON 282 Final Practice Problems

ECO 220 Game Theory. Objectives. Agenda. Simultaneous Move Games. Be able to structure a game in normal form Be able to identify a Nash equilibrium

Instability of Scoring Heuristic In games with value exchange, the heuristics are very bumpy Make smoothing assumptions search for "quiesence"

Smyth County Public Schools 2017 Computer Science Competition Coding Problems

Resource Allocation and Decision Analysis (ECON 8010) Spring 2014 Foundations of Game Theory

Games. Episode 6 Part III: Dynamics. Baochun Li Professor Department of Electrical and Computer Engineering University of Toronto

Computing optimal strategy for finite two-player games. Simon Taylor

Math 152: Applicable Mathematics and Computing

The Best Evolutionary Solution to the Iterated Prisoner s Dilemma

Applied Game Theory And Strategic Behavior Chapter 1 and Chapter 2. Author: Siim Adamson TTÜ 2010

Game Theory. Wolfgang Frimmel. Dominance

Introduction to Genetic Algorithms

Chapter 3: Complex systems and the structure of Emergence. Hamzah Asyrani Sulaiman

Multiagent Systems: Intro to Game Theory. CS 486/686: Introduction to Artificial Intelligence

A Brief Introduction to Game Theory

Prisoner 2 Confess Remain Silent Confess (-5, -5) (0, -20) Remain Silent (-20, 0) (-1, -1)

4.2.5 How much can I expect to win?

ECO 199 B GAMES OF STRATEGY Spring Term 2004 B February 24 SEQUENTIAL AND SIMULTANEOUS GAMES. Representation Tree Matrix Equilibrium concept

Lecture 11 Strategic Form Games

ISudoku. Jonathon Makepeace Matthew Harris Jamie Sparrow Julian Hillebrand

3 Game Theory II: Sequential-Move and Repeated Games

Chapter 30: Game Theory

CS510 \ Lecture Ariel Stolerman

ECOSYSTEM MODELS. Spatial. Tony Starfield recorded: 2005

Game Theory and the Environment. Game Theory and the Environment

TUESDAY, 8 NOVEMBER 2016 MORNING 1 hour 45 minutes

Robustness against Longer Memory Strategies in Evolutionary Games.

CHECKMATE! A Brief Introduction to Game Theory. Dan Garcia UC Berkeley. The World. Kasparov

CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25. Homework #1. ( Due: Oct 10 ) Figure 1: The laser game.

arxiv: v1 [math.ds] 30 Jul 2015

Basic Game Theory. Economics Auction Theory. Instructor: Songzi Du. Simon Fraser University. September 7, 2016

Backward Induction and Stackelberg Competition

* How many total outcomes are there if you are rolling two dice? (this is assuming that the dice are different, i.e. 1, 6 isn t the same as a 6, 1)

ECON 2100 Principles of Microeconomics (Summer 2016) Game Theory and Oligopoly

EC3224 Autumn Lecture #02 Nash Equilibrium

Game Theory Lecturer: Ji Liu Thanks for Jerry Zhu's slides

Lecture 13(ii) Announcements. Lecture on Game Theory. None. 1. The Simple Version of the Battle of the Sexes

Problem 1 (15 points: Graded by Shahin) Recall the network structure of our in-class trading experiment shown in Figure 1

Dynamics of Internal Models in Game Players

Reading Robert Gibbons, A Primer in Game Theory, Harvester Wheatsheaf 1992.

Since it was introduced in the middle of the last

Syllabus, Fall 2002 for: Agents, Games & Evolution OPIM 325 (Simulation)

CS1800: More Counting. Professor Kevin Gold

ECON 312: Games and Strategy 1. Industrial Organization Games and Strategy

What is... Game Theory? By Megan Fava

Applied Game Theory And Strategic Behavior Chapter 1 and Chapter 2 review

Multi-player, non-zero-sum games

A Brief Introduction to Game Theory

LESSON PLAN 5. Fractal Dimension

Heads-up Limit Texas Hold em Poker Agent

Microeconomics of Banking: Lecture 4

Math 611: Game Theory Notes Chetan Prakash 2012

NORMAL FORM (SIMULTANEOUS MOVE) GAMES

Multilevel Selection In-Class Activities. Accompanies the article:

Econ 302: Microeconomics II - Strategic Behavior. Problem Set #5 June13, 2016

Grade 6 Math Circles February 21/22, Patterns

CMU-Q Lecture 20:

Big Data Analytics in Science and Research: New Drivers for Growth and Global Challenges

Grade 6 Math Circles February 21/22, Patterns - Solutions

Games in Extensive Form, Backward Induction, and Subgame Perfection:

1\2 L m R M 2, 2 1, 1 0, 0 B 1, 0 0, 0 1, 1

Arithmetic Sequences Read 8.2 Examples 1-4

Chapter 15: Game Theory: The Mathematics of Competition Lesson Plan

CPM Educational Program

An Idea for a Project A Universe for the Evolution of Consciousness

Exercises for Introduction to Game Theory SOLUTIONS

Dominance and Best Response. player 2

CSCI 699: Topics in Learning and Game Theory Fall 2017 Lecture 3: Intro to Game Theory. Instructor: Shaddin Dughmi

CS1802 Week 9: Probability, Expectation, Entropy

6.001, Fall Semester, Problem Set 3 3. In game theory, atwo-person binary-choice game is represented by atwo-by-two matrix.

Introduction to Game Theory

Idaho Extended Content Standards Draft Extended Content Indicators Grade 1 Science

REFLECTIONS OBJECTIVE

Multiple Agents. Why can t we all just get along? (Rodney King)

Complexity, Virtualization, and the Future of Cooperation

Chapter 3: PROBABILITY

Transcription:

An Intersection of Art, Biology, Ethics, and Computer Science," Gustavo Rodriguez-Rivera Computer Science Purdue University

Computer as a Mirror Computers are not only used to Execute things fast. Send e-mail Browse the web Listen to music Watch Youtube. They also can be used as a tool to understand ourselves and the world around us.

Using the Computer as a Tool to Understand Ourselves What I cannot create, I do not understand. - Richard Feynman If we think we know how something works, we can write a program to simulate it and to predict its behavior. If the program accurately predicts the behavior, then our model works. The computer can be used as a tool to understand our world and ourselves. That is why computer programming is a important skill to have for all science majors.

Three examples of how Computers can Help Understand Science ART and CS Fractals Biology and CS Life and Cellular Automatons Ethics and CS Cooperation

ART and CS: Fractals They are patterns that are formed by repeating a simple process over and over again. Fractals have a long history but the term war created by Benoit Mandelbrot.

We can find fractals all over the world: plants, seashells, trees, coastlines etc. Adapted from Fractal Foundation http://fractalfoundation.org/ofc/ofc-index.htm

Also fractals can be generated by the computer

Branching Fractals

Fractals in the Body Human lungs, showing blood vessels

Fractals in the Body Human retina

Fractals in Rivers Grand Canyon

Fractals in Lightning Lightning over Albuquerque, New Mexico

Fractals Neurons Hippocampal neurons (green) and glial cells (red).

Spirals in Nature M51 the "Whirlpool Galaxy". Scale approximately 100,000 light years.

Spirals in Nature Hurricane Katrina, 2005.

Spirals in Nature Agave Cactus.

Spirals in Nature Sunflower (Helianthus annuus).

Spirals in Nature Nautilus shell.

Geometric Fractals Sierpinski Fractals

Fractals in Minecraft Minecraft uses fractals extensively to generate worlds

Fractals in Computer Graphics Programmers use Fractals in Computer Graphics because with few lines of code they can generate images that look very real.

Fractals in Computer Graphics Another fractal landscape

Program Your own Fractal We will use Python and Turtle Graphics Go to http://python.org to get python for free

The 2.9 billion base pairs of the haploid human genome Each base pair can be represented with 2 bits. That corresponds to a maximum of about 725MB Many of the tissues in our body follow a fractal pattern. That allows having a short encoding.

Turtle Graphics There is a turtle with a pen You have the following instructions: color( green ) Set pen color to green forward(200) Move forward 200 units backward(200) Move backward 200 units

Turtle Graphics Other instructions: left(90) Turn left 90 degrees right(90) Turn right 90 degrees up() Pen up down() Pen down

Draw a square from turtle import * color('red', 'yellow') forward(200) left(90) forward(200) left(90) forward(200) left(90) forward(200) left(90) done()

Draw a triangle from turtle import * color('red', 'yellow') forward(200) left(120) forward(200) left(120) forward(200) left(120) done()

Draw a polygon with n sides from turtle import * def polygon(n): color('red', 'yellow') for i in range(n): forward(200) left(360/n) polygon(5) done()

Draw a star from turtle import * color('red', 'yellow') while True: forward(200) left(130) if abs(pos()) < 1: break done()

Draw a Tree from turtle import * def mytree(n): if (n < 10): return forward(n) left(45) mytree(n/2) right(45) mytree(n/2) right(45) mytree(n/2) left(45) backward(n) color( green") pensize(3) mytree(100) done()

Laplace Prediction and Determinism An intelligence knowing all the forces acting in nature at a given instant, as well as the momentary positions of all things in the universe, would be able to comprehend in one single formula the motions of the largest bodies as well as the lightest atoms in the world,. (Laplace 1820)

The Universe, Life, and Cellular Automatons We can think of the universe as a computer program. The current state of the universe at time t is stored as variables in the computer. The program includes the laws of physics that can predict the universe at time t+delta. Problems: The universe is analog. But we can approximately digitally with some error. The universe is too complex and large. We will need a very large and powerful computer. Lots of simultaneous differential equations solved numerically.

Simplifying the Universe to One Dimension Like everything in Science All models are wrong; some models are useful. (George Box 1987) We will try to simplify our universe to a One-Dimension binary universe and see if we get something useful.

One-Dimension Cellular Automatons Stephen Wolfram in his book A New Kind of Science proposes the simplest class of onedimensional cellular automaton. http://mathworld.wolfram.com/elementaryce llularautomaton.html The initial Universe (The One-Dimensional Big Bang ) is represented as a string of 0 s with only a 1 in the middle. = 0 # = 1 Example: 0000000000000000100000000000000000000 #

Rules There are rules that depend only on nearest neighbor to produce the next string. Example: Time 0: # Time 1: ### Time 3: ## #... Rules can be encoded in 8 bits : 1 byte. There are 2^8 = 256 different rules.

Applying the rules further

And further

Interesting Rules

Life and Cellular Automatons What about Life? We can extend the 1D Cellular Automatons to 2D. Conway s Game of Life: Conway's game of life in JavaScript Life is a complicated system but we can model it with simple models and get interesting results.

Ethics and Computers- The Prisoner s Dilemma The Prisoners Dilemma is an example of game theory that demonstrates when cooperation may be good. It was originally framed by Merrill Flood and Melvin Dresher We used here a variation of the original dilemma use something more familiar like roommates washing dishes (As described in: Minotauromachia Journal).

4. Nobody will wash the dishes (N,N) Game Theory of Washing Dishes Ben and Jack are roommates They have two choices: washing dishes or not. The possible outcomes are: 1. Ben will wash the dishes, Jack will do nothing (Y,N) 2. Ben will do nothing, Jack will wash the dishes (N,Y) 3. Both will wash the dishes together (Y,Y)

Outcome Payoff Matrix Table of Points based on the decision of each player Points indicate the benefits of the decision BEN JACK WASH NO WASH WASH 2,2 0,3 NO WASH 3,0 1,1

What is the Best Choice? If I am Ben what is the best choice? (Assuming that Jack has the same probability choosing cooperate and no cooperate.) Average Points for Ben if cooperates = (2 + 0) / 2 = 1 Average Points for Ben if no cooperate = (3+1) / 2 = 2 Therefore, assuming that Jack has the same probability to cooperate and not to cooperate it is better not to cooperate. Most likely Jack will make a similar choice not to cooperate and both will get 1,1. This could be a typical game if both were roommates only for one day.

Iterated Prisoner s Dilemma Roommates will see each other today, tomorrow, many weeks, months and maybe years. The move of the other player yesterday may affect the move of the player today. Cooperation starts. If both cooperate they will get 2 points each instead of only 1.

Strategies: Slacker: Never wash dishes Naive: Wash the dishes no matter what the other roomate does. Random: Make a random move Tit for Tat: Start washing dishes and then do what the other player did before. Unforgiving: Wash dishes first and do not wash dishes after the first time the other roomate does not wash them. Many more

The Evolution of Cooperation Robert Axelrod in his book The Evolution of Cooperation organized a tournament with a N steps prisoner s dilemma. Participants submitted programs implementing their own strategy. Tournament Winning Strategy was Tit-For-Tat.

Characteristics of Tit-For-Tat Be nice: cooperate, never be the first to defect. Be provocable: return defection for defection, cooperation for cooperation. Don't be envious: be fair with your partner. Don't be too clever: or, don't try to be tricky. Be predictable. Cooperation is good for you and your roomate.

Conclusions A computer is a great tool to help us understand ourselves. Simple models may not be complete but may be helpful to understand big systems. Learning how to program is a skill useful for everybody and not only for computer scientists.