Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #89432 > unrolled thread
| Started by | Seymore4Head <Seymore4Head@Hotmail.invalid> |
|---|---|
| First post | 2015-04-26 17:35 -0400 |
| Last post | 2015-04-28 18:33 -0700 |
| Articles | 13 — 6 participants |
Back to article view | Back to comp.lang.python
Tit for tat Seymore4Head <Seymore4Head@Hotmail.invalid> - 2015-04-26 17:35 -0400
Re: Tit for tat Ben Finney <ben+python@benfinney.id.au> - 2015-04-27 09:40 +1000
Re: Tit for tat Seymore4Head <Seymore4Head@Hotmail.invalid> - 2015-04-26 21:40 -0400
Re: Tit for tat Rustom Mody <rustompmody@gmail.com> - 2015-04-26 18:50 -0700
Re: Tit for tat Ben Finney <ben+python@benfinney.id.au> - 2015-04-27 12:48 +1000
Re: Tit for tat John Ladasky <john_ladasky@sbcglobal.net> - 2015-04-26 22:50 -0700
Re: Tit for tat John Ladasky <john_ladasky@sbcglobal.net> - 2015-04-26 22:58 -0700
Re: Tit for tat Seymore4Head <Seymore4Head@Hotmail.invalid> - 2015-04-27 23:18 -0400
Re: Tit for tat Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-04-28 16:58 +1000
Re: Tit for tat Robert Kern <robert.kern@gmail.com> - 2015-04-28 21:09 +0100
Re: Tit for tat John Ladasky <john_ladasky@sbcglobal.net> - 2015-04-28 15:16 -0700
Re: Tit for tat Seymore4Head <Seymore4Head@Hotmail.invalid> - 2015-04-28 20:03 -0400
Re: Tit for tat Rustom Mody <rustompmody@gmail.com> - 2015-04-28 18:33 -0700
| From | Seymore4Head <Seymore4Head@Hotmail.invalid> |
|---|---|
| Date | 2015-04-26 17:35 -0400 |
| Subject | Tit for tat |
| Message-ID | <admqjato7hkbnh4kp8qeeepn7lcp0ck18e@4ax.com> |
https://www.youtube.com/watch?v=48EWLj3gIJ8 Anyone here worked on trying a better strategy?
[toc] | [next] | [standalone]
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Date | 2015-04-27 09:40 +1000 |
| Message-ID | <mailman.30.1430091619.3680.python-list@python.org> |
| In reply to | #89432 |
Seymore4Head <Seymore4Head@Hotmail.invalid> writes: > Anyone here worked on trying a better strategy? If you want us to spend the time visiting a link, please spend the time yourself to summarise why it's relevant here. Do so in the initial post with the link. -- \ “Some mornings, it's just not worth chewing through the leather | `\ straps.” —Emo Philips | _o__) | Ben Finney
[toc] | [prev] | [next] | [standalone]
| From | Seymore4Head <Seymore4Head@Hotmail.invalid> |
|---|---|
| Date | 2015-04-26 21:40 -0400 |
| Message-ID | <0p4rjadeqf1fb361dbkfatgpb9s0v266po@4ax.com> |
| In reply to | #89434 |
On Mon, 27 Apr 2015 09:40:04 +1000, Ben Finney <ben+python@benfinney.id.au> wrote: >Seymore4Head <Seymore4Head@Hotmail.invalid> writes: > >> Anyone here worked on trying a better strategy? > >If you want us to spend the time visiting a link, please spend the time >yourself to summarise why it's relevant here. Do so in the initial post >with the link. Richard Dawkins explains with passion the idea of game theory and tit for tat, or why cooperation with strangers is often a strong strategy. He talks of a computer program tournament. I don't know what I could say that would be more interesting than just watching the video.
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2015-04-26 18:50 -0700 |
| Message-ID | <6cf5086b-4cf0-4d8e-84c5-8046a3097cde@googlegroups.com> |
| In reply to | #89435 |
On Monday, April 27, 2015 at 7:11:08 AM UTC+5:30, Seymore4Head wrote: > On Mon, 27 Apr 2015 09:40:04 +1000, Ben Finney wrote: > > >Seymore4Head writes: > > > >> Anyone here worked on trying a better strategy? > > > >If you want us to spend the time visiting a link, please spend the time > >yourself to summarise why it's relevant here. Do so in the initial post > >with the link. > > Richard Dawkins explains with passion the idea of game theory and tit > for tat, or why cooperation with strangers is often a strong strategy. > > He talks of a computer program tournament. I don't know what I could > say that would be more interesting than just watching the video. That's a good summary. Many people would not click on any-ol video
[toc] | [prev] | [next] | [standalone]
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Date | 2015-04-27 12:48 +1000 |
| Message-ID | <mailman.32.1430102919.3680.python-list@python.org> |
| In reply to | #89435 |
Seymore4Head <Seymore4Head@Hotmail.invalid> writes: > Richard Dawkins explains with passion the idea of game theory and tit > for tat, or why cooperation with strangers is often a strong strategy. > > He talks of a computer program tournament. Thanks! That is what would be great to have when you present the link in the first message. That way we know *why* we should go visit an otherwise context-free link. -- \ “The basic fact about human existence is not that it is a | `\ tragedy, but that it is a bore.” —Henry L. Mencken | _o__) | Ben Finney
[toc] | [prev] | [next] | [standalone]
| From | John Ladasky <john_ladasky@sbcglobal.net> |
|---|---|
| Date | 2015-04-26 22:50 -0700 |
| Message-ID | <1aa6b45b-8c50-48f8-ae01-86a4bf8a838f@googlegroups.com> |
| In reply to | #89435 |
On Sunday, April 26, 2015 at 6:41:08 PM UTC-7, Seymore4Head wrote: > Richard Dawkins explains with passion the idea of game theory and tit > for tat, or why cooperation with strangers is often a strong strategy. > > He talks of a computer program tournament. I don't know what I could > say that would be more interesting than just watching the video. Well, I'm not sure sure what any of this has to do with Python -- but since I know something about the subject, I'll reply. That Richard Dawkins video is quite old -- it would appear to be from the middle 1980's. Douglas Hofstadter's 1985 book, _Metamagical_Themas_, covered this exact same material. A game called the "Iterated Prisoner's Dilemma" is played (I'll abbreviate it as IPD). Humans can play, of course, but in this case it is played by algorithms. An algorithm called "Tit for Tat" is surprisingly simple and robust. When meeting a new contestant, Tit for Tat plays nice in round 1; and on every subsequent round, it plays however that opponent played the last time. Evolutionary biologists like Dawkins point to the success of Tit for Tat in IPD as a model of how cooperation could emerge in a population of selfish organisms. Now, in a round-robin IPD game, Tit for Tat wins pretty handily. But in some other scenarios, as I recall, Tit for Tat is not a runaway winner. Suppose that instead of each strategy playing EVERY other, each strategy inhabits a "territory" in a space, and each strategy only plays its neighbors. In "rough neighborhoods", Tit for Tat can lose out to more punitive strategies. If Tit for Tat is around more cooperative strategies, it thrives. The boundaries between good neighborhoods and bad are chaotic. Tit for Tat more or less holds the borders, but usually can't clean out a bad neighborhood. This finding came out many years after the Hofstadter and Dawkins reports, so it's not covered in the video. My reference to the idea is a 1997 paper entitled "The Undecidability of the Spatialized Prisoner's Dilemma," by Patrick Grim (http://link.springer.com/article/10.1023%2FA%3A1004959623042).
[toc] | [prev] | [next] | [standalone]
| From | John Ladasky <john_ladasky@sbcglobal.net> |
|---|---|
| Date | 2015-04-26 22:58 -0700 |
| Message-ID | <f083393f-1d75-40ee-9cad-750e72e71e02@googlegroups.com> |
| In reply to | #89445 |
Following up to myself... Here's a link to Patrick Grim's results that you can actually download (Springer really retains a 1997 research paper behind a paywall?): http://www.pgrim.org/pgrim/SPATIALP.HTM
[toc] | [prev] | [next] | [standalone]
| From | Seymore4Head <Seymore4Head@Hotmail.invalid> |
|---|---|
| Date | 2015-04-27 23:18 -0400 |
| Message-ID | <0uutjat2909gkj1bkh4h5kvko4r11tm359@4ax.com> |
| In reply to | #89445 |
On Sun, 26 Apr 2015 22:50:03 -0700 (PDT), John Ladasky <john_ladasky@sbcglobal.net> wrote: >On Sunday, April 26, 2015 at 6:41:08 PM UTC-7, Seymore4Head wrote: > >> Richard Dawkins explains with passion the idea of game theory and tit >> for tat, or why cooperation with strangers is often a strong strategy. >> >> He talks of a computer program tournament. I don't know what I could >> say that would be more interesting than just watching the video. > >Well, I'm not sure sure what any of this has to do with Python -- but since I know something about the subject, I'll reply. > >That Richard Dawkins video is quite old -- it would appear to be from the middle 1980's. Douglas Hofstadter's 1985 book, _Metamagical_Themas_, covered this exact same material. A game called the "Iterated Prisoner's Dilemma" is played (I'll abbreviate it as IPD). Humans can play, of course, but in this case it is played by algorithms. An algorithm called "Tit for Tat" is surprisingly simple and robust. When meeting a new contestant, Tit for Tat plays nice in round 1; and on every subsequent round, it plays however that opponent played the last time. > >Evolutionary biologists like Dawkins point to the success of Tit for Tat in IPD as a model of how cooperation could emerge in a population of selfish organisms. Now, in a round-robin IPD game, Tit for Tat wins pretty handily. But in some other scenarios, as I recall, Tit for Tat is not a runaway winner. > >Suppose that instead of each strategy playing EVERY other, each strategy inhabits a "territory" in a space, and each strategy only plays its neighbors. In "rough neighborhoods", Tit for Tat can lose out to more punitive strategies. If Tit for Tat is around more cooperative strategies, it thrives. The boundaries between good neighborhoods and bad are chaotic. Tit for Tat more or less holds the borders, but usually can't clean out a bad neighborhood. > >This finding came out many years after the Hofstadter and Dawkins reports, so it's not covered in the video. My reference to the idea is a 1997 paper entitled "The Undecidability of the Spatialized Prisoner's Dilemma," by Patrick Grim (http://link.springer.com/article/10.1023%2FA%3A1004959623042). In the past, I have had some measure of success with the Toot for Tail strategy.
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2015-04-28 16:58 +1000 |
| Message-ID | <553f2fb2$0$12896$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #89475 |
On Tuesday 28 April 2015 13:18, Seymore4Head wrote: > In the past, I have had some measure of success with the Toot for Tail > strategy. I don't believe that is a standard name for an Iterated Prisoner's Dilemma strategy. I've googled for it, using two different search engines, and neither come up with any references for "Toot For Tail" strategies. -- Steve
[toc] | [prev] | [next] | [standalone]
| From | Robert Kern <robert.kern@gmail.com> |
|---|---|
| Date | 2015-04-28 21:09 +0100 |
| Message-ID | <mailman.65.1430251800.3680.python-list@python.org> |
| In reply to | #89482 |
On 2015-04-28 07:58, Steven D'Aprano wrote: > On Tuesday 28 April 2015 13:18, Seymore4Head wrote: > >> In the past, I have had some measure of success with the Toot for Tail >> strategy. > > I don't believe that is a standard name for an Iterated Prisoner's Dilemma > strategy. I've googled for it, using two different search engines, and > neither come up with any references for "Toot For Tail" strategies. I do believe he is trying to make a crude joke. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
[toc] | [prev] | [next] | [standalone]
| From | John Ladasky <john_ladasky@sbcglobal.net> |
|---|---|
| Date | 2015-04-28 15:16 -0700 |
| Message-ID | <a81dccf6-7dde-410d-a5e4-ff7c026c1eeb@googlegroups.com> |
| In reply to | #89503 |
On Tuesday, April 28, 2015 at 1:10:14 PM UTC-7, Robert Kern wrote: > On 2015-04-28 07:58, Steven D'Aprano wrote: > I do believe he is trying to make a crude joke. I agree, that's what he's doing. And I find it ironic, since he started this thread, and seemed to invite a serious discussion of the topic. I thought that Patrick Grim's analysis was very interesting, showing that the Spatialized Iterated Prisoner's Dilemma (SIPD) could emulate the Wireworld cellular automaton, which is a Turing-complete system. Thus, the SIPD, a seemingly simple system at first glance, includes configurations which are formally undecidable in the Gödelian sense. I'm not sure whether Grim proved that an SIPD which includes the Tit for Tat strategy could emulate Wireworld, but it seems likely that one could be built.
[toc] | [prev] | [next] | [standalone]
| From | Seymore4Head <Seymore4Head@Hotmail.invalid> |
|---|---|
| Date | 2015-04-28 20:03 -0400 |
| Message-ID | <kt70kal2un0q5s0g0m0cf2i68im97i7e7l@4ax.com> |
| In reply to | #89504 |
On Tue, 28 Apr 2015 15:16:05 -0700 (PDT), John Ladasky <john_ladasky@sbcglobal.net> wrote: >On Tuesday, April 28, 2015 at 1:10:14 PM UTC-7, Robert Kern wrote: >> On 2015-04-28 07:58, Steven D'Aprano wrote: > >> I do believe he is trying to make a crude joke. > >I agree, that's what he's doing. And I find it ironic, since he started this thread, and seemed to invite a serious discussion of the topic. > I did start out serious. I thought I was making a pretty funny joke too. I though both were allowed. I guess not. Sorry What I was fishing for were personal stories of programmers that had tried the tit for tat program challenge. >I thought that Patrick Grim's analysis was very interesting, showing that the Spatialized Iterated Prisoner's Dilemma (SIPD) could emulate the Wireworld cellular automaton, which is a Turing-complete system. Thus, the SIPD, a seemingly simple system at first glance, includes configurations which are formally undecidable in the Gödelian sense. I'm not sure whether Grim proved that an SIPD which includes the Tit for Tat strategy could emulate Wireworld, but it seems likely that one could be built.
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2015-04-28 18:33 -0700 |
| Message-ID | <4869234f-8959-4295-a4f4-84d8692a4a9c@googlegroups.com> |
| In reply to | #89504 |
On Wednesday, April 29, 2015 at 3:46:24 AM UTC+5:30, John Ladasky wrote: > I thought that Patrick Grim's analysis was very interesting, showing that the > Spatialized Iterated Prisoner's Dilemma (SIPD) could emulate the Wireworld > cellular automaton, which is a Turing-complete system. Thus, the SIPD, a > seemingly simple system at first glance, includes configurations which are > formally undecidable in the Gödelian sense. I'm not sure whether Grim proved > that an SIPD which includes the Tit for Tat strategy could emulate Wireworld, > but it seems likely that one could be built. Thanks John for those pointers -- Ive been looking at it with interest. This area is of some interest to me -- as my last two blog posts would indicate http://blog.languager.org/2015/04/poverty-universality-structure-0.html http://blog.languager.org/2015/03/cs-history-0.html ------------------------ PS Google groups invites to writing longlines which causes trouble to some people out here (with historical machines?).
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web