+ All Categories
Home > Documents > The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the...

The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the...

Date post: 01-Jun-2020
Category:
Upload: others
View: 10 times
Download: 0 times
Share this document with a friend
26
The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019
Transcript
Page 1: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

The Meaning of Life, the Universe, and Everything

Derek Feng

Friday, August 2nd 2019

Page 2: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

42

Page 3: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

From Bridges to Amazon, to Sudoku, to One Million Dollars!

Page 4: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Graphs

We talked about the Konigsberg Bridges problem last lecture.

Question

What are the Practical Applications?

4 of 25

Page 5: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Applications

I Garbage Collection?

I Postal Service/UPS/FedEx

I Supply Chain Optimization

This is what makes it possible for you to order something on Amazononline today and have it arrive AT YOUR DOORSTEP tomorrow.1

1Not sure about Abkazia...

5 of 25

Page 6: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Traveling Salesman Problem

Given a list of cities and thedistances between each pair ofcities, what is the shortestpossible route that visits each cityand returns to the origin city?

6 of 25

Page 7: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

What about this graph?

NP-hard: hard to solve, also hard to check the solution.

7 of 25

Page 8: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Shortest Path Problem

P: easy to solve

8 of 25

Page 9: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Sudoku

9 of 25

Page 10: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Sudoku

NP : hard to solve, but easy to check the solution

10 of 25

Page 11: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Who wants $1,000,000?

All you have to do is show P 6= NP? That doesn’t sound too difficult,right?

11 of 25

Page 12: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Let’s go back to Graphs and Networks

Page 13: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Traffic

I Suppose you are a Urban Planner and you are in charge ofimproving traffic in your city.

I You see that traffic is bad, and you decide to construct a new road

I Traffic should improve, right?

Question

Is it possible for traffic to actually get worse?

13 of 25

Page 14: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Braess’ Paradox

I Seoul, Korea, Early 2000s: traffic improved when a centralhighway was removed

I New York City, 1990: the closing of 42nd street reduced theamount of congestion in the area

14 of 25

Page 15: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,
Page 16: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Simple Example

16 of 25

Page 17: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

This is an example of the Tragedy of the Commons (more broadly, thefield of Game Theory)

I selfish individual behavior leads to results that are sociallysub-optimal.

Any solutions?

Page 18: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Self-Driving Cars: The Future

I One person is killed every 25 seconds by a Traffic-related accident

I On the other hand, the self-driving cars have driven millions ofmiles in USA, and there has been only 1 confirmed death

I Which is safer?

18 of 25

Page 19: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Self-Driving Cars

Question

If a self-driving car kills someone, who is to blame?

Question

If you are Uber, and your passenger is in a self-driving car, and the carhas a choice between killing a bystander and killing the passenger, whatis it going to choose?

19 of 25

Page 20: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Self-Driving Cars

Question

If a self-driving car kills someone, who is to blame?

Question

If you are Uber, and your passenger is in a self-driving car, and the carhas a choice between killing a bystander and killing the passenger, whatis it going to choose?

19 of 25

Page 21: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Mathematics of Ethics

Page 22: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

The Repugnant Conclusion

21 of 25

Page 23: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Two scenarios:

1. A pregnant mother suffers from an illness which, unless sheundergoes a simple treatment, will cause her child to suffer apermanent handicap. If she receives the treatment and is curedher child will be perfectly normal.

2. A woman suffers from an illness which means that, if she getspregnant now, her child will suffer from a permanent handicap. Ifshe postpones her pregnancy a few months until she hasrecovered, her child will be perfectly normal.

Page 24: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

Similar scenario:

I Suppose we who are living now decide to ignore global warming,with the result that the lives of future people are much harder.

I It would seem that we have made things worse for those futurepeople. But, in fact, as long as their lives are worth living this isnot the case—because if we had acted differently, the world wouldhave been different, and those particular people would never haveexisted

Page 25: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

The Repugnant Conclusion

24 of 25

Page 26: The Meaning of Life, the Universe, and Everythingdf342/pdf/l03.pdf · The Meaning of Life, the Universe, and Everything Derek Feng Friday, August 2nd 2019. 42. From Bridges to Amazon,

The Repugnant Conclusion

25 of 25


Recommended