Jump to content

Talk:Chaos game

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Reversed

[edit]

i think these paragraphs should be reversed. the primary definition of "chaos game" is the general one, the polygon is an older meaning and a special case. furthermore it would be great to have an series of images illustrating how the attractor emerges as the samples generated by the game accumulate. and lay out the algorithm in step by step pseudo-code. Spot 07:10, 10 July 2007 (UTC)[reply]

problem: the sierpinski gasket image shown was made with an L-system, not with the chaos game as claimed. Spot 20:42, 18 August 2007 (UTC)[reply]


Question:

I fail to see how the chaos game could possibly generate the sierpinski triangle. If the criteria for plotting points is that they simply lie on the midpoint between any point inside the initial polygon (triangle) and one of the verticies of the initial polygon, then it's pretty easy to demonstrate that all points inside the polygon will be plotted with almost equal probability. What am I not understanding about the chaos game? —Preceding unsigned comment added by 75.9.35.155 (talk) 21:15, 25 September 2008 (UTC) I had the same interrogation, so I looked up in Wolfram and tried to clarify it : the thing is you choose a point at random inside the triangle only for the first point. Then you keep reusing your result as the initial point, switching vertices at random. You have to throw out the first few points, there is some sort of convergence to reach. --Iv (talk) 11:35, 14 November 2009 (UTC)[reply]


It certainly does work, this is the result:

(each color represents which of the three vertices was randomly chosen during plotting). It's still very fascinating though, and I cannot quite wrap my head around this either :-)

Perhaps this animation will help? — Preceding unsigned comment added by Edward Haas (talkcontribs) 23:28, 27 May 2017 (UTC)[reply]

Ambiguous wording on the restricted chaos game

[edit]

Many of the descriptions of the images in the section on the restricted chaos game are unclear. On the second image for example ("the current vertex cannot be one place away from the previously chosen vertex"), the explanation is clearly false, as the current wording means that a random pair of antipodal vertices would be chosen and alternated between. Hopefully someone can clarify this. KingSupernova (talk) 05:32, 11 January 2017 (UTC)[reply]

While it seems that particular one above has been clarified, this other description is particularly ambiguous. "A point inside a square repeatedly jumps half of the distance towards a randomly chosen vertex, but the currently chosen vertex cannot be 1 or 3 places, respectively away from the two previously chosen vertices." I've tried to reproduce the image from the description but have been unable to. 2601:643:8680:6505:B0BE:1B60:C218:693A (talk) 23:44, 9 September 2017 (UTC)[reply]

Same here! Wish someone can clarify that issue with "A point inside a square repeatedly jumps half of the distance towards a randomly chosen vertex, but the currently chosen vertex cannot be 1 or 3 places, respectively away from the two previously chosen vertices." — Preceding unsigned comment added by 2003:F5:A3C7:E1C8:79DF:AB27:9F97:426E (talk) 13:29, 30 November 2018 (UTC)[reply]

It's been a little while but if I recall correctly, that one is essential "If the last two chosen vertices are the same, the next vertex can't neighbor that vertex". Here's the program that generated my version of the image: Restricted Chaos Game Edward Haas (talk) 15:06, 5 March 2019 (UTC)[reply]

I just confirmed with code that Haas's description works for the pentagonal one as well. Only when the last two chosen vertices are the same do you not allow using their neighbors for the next chosen vertex. — Preceding unsigned comment added by 2604:2000:EE88:4300:2554:AB82:6C5C:B771 (talk) 06:21, 31 March 2019 (UTC)[reply]

Explanation of region-restricted pattern

[edit]

So I've been doing a bit of experimentation with this, and the image showing the jump being restricted from landing on a particular area and causing a copy of that area to be seen at smaller scales around the field. (The one with the "Om" symbol.) Unless I'm missing something, there's something misleading about that particular image - specifically, it appears to be inverted. Whereas all the other images on this page feature black dots being drawn on a white background, this one seems to have been done with white dots on a black background. i.e. the black areas on the image are those which were never visited, rather than those which were. I don't know if the image would be easier to understand if it were inverted, but it would be more consistent with the other images on the page. Lurlock (talk) 18:56, 26 June 2020 (UTC)[reply]

I think it's worth sharing my best attempt to replicate the effect of the chaos game with the Om symbol, found here. I also previously inquired the original author about it on Wikimedia Commons, who replied:

I'm puzzled when I try to re-construct what I did, but the Basic program I used is here: https://en.wikipedia.org/wiki/User:MagistraMundi/sandbox

I never gave much attention to this code, but maybe it could be useful to someone. Brunodantas3 (talk) 06:37, 28 June 2020 (UTC)[reply]


Here's what I got: [1]. Not sure what to do with that code, I've never worked in Basic before. (Mine is done in C# - might be a little long to post here though.) Lurlock (talk) 13:35, 29 June 2020 (UTC)[reply]

Here's another one: [2]. I offset the restricted area to the right (the beige 'a', color chosen so that it wouldn't be anywhere else on the screen), and instead of just black dots, I used a spectrum as a heat-map. White areas were never visited, blue areas were visited very rarely, and red more frequently. Note that you can see the ghost of an additional pattern of the large A mirrored in position (but not mirrored in orientation) to the left of the image, and similar repetitions at each of the smaller scales as well. I suppose I should explain the exact algorithm for clarity. What I did was pick a corner at random, and jump 1/2 of the way to that corner from the current position. But if that new location would end up on the beige restricted area, it goes back to where it was and picks a different corner until it doesn't. This can be combined with other rule-sets for other effects, producing similar omitted areas, but also some inverted areas in other parts, some of which came out similar to your Q example linked above. Lurlock (talk) 20:25, 29 June 2020 (UTC)[reply]