<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>谢尔宾斯基地毯</title>
	<atom:link href="https://www.aitaocui.cn/tag/177183/feed" rel="self" type="application/rss+xml" />
	<link>https://www.aitaocui.cn</link>
	<description>翡翠玉石爱好者聚集地</description>
	<lastBuildDate>Wed, 23 Nov 2022 03:50:53 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>

<image>
	<url>https://www.aitaocui.cn/wp-content/uploads/2022/11/taocui.png</url>
	<title>谢尔宾斯基地毯</title>
	<link>https://www.aitaocui.cn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>谢尔宾斯基地毯(数学家谢尔宾斯基提出的分形图形)</title>
		<link>https://www.aitaocui.cn/article/280630.html</link>
					<comments>https://www.aitaocui.cn/article/280630.html#respond</comments>
		
		<dc:creator><![CDATA[下北]]></dc:creator>
		<pubDate>Wed, 23 Nov 2022 03:50:53 +0000</pubDate>
				<category><![CDATA[百科]]></category>
		<category><![CDATA[谢尔宾斯基地毯]]></category>
		<guid isPermaLink="false">https://www.aitaocui.cn/?p=280630</guid>

					<description><![CDATA[谢尔宾斯基地毯是数学家谢尔宾斯基提出的一个分形图形。谢尔宾斯基地毯和谢尔宾斯基三角形基本类似，不同之处在于谢尔宾斯基地毯采用的是正方形进行分形构造，而谢尔宾斯基三角形采用的等边三角...]]></description>
										<content:encoded><![CDATA[</p>
<article>
<p>谢尔宾斯基地毯是数学家谢尔宾斯基提出的一个分形图形。谢尔宾斯基地毯和谢尔宾斯基三角形基本类似，不同之处在于谢尔宾斯基地毯采用的是正方形进行分形构造，而谢尔宾斯基三角形采用的等边三角形进行分形构造。谢尔宾斯基地毯它本身的一部分完全相似。减掉一块会破坏自相似性。</p>
</article>
<p><img decoding="async" src="https://www.aitaocui.cn/wp-content/uploads/2022/08/20220828_630b7b29b37af.jpg" /></p>
<article>
<h1>介提出者</h1>
<p>谢尔宾斯基地毯是由瓦茨瓦夫·谢尔宾斯基于1916年提出的一种分形，是自相似集的一种。它的豪斯多夫维是 log 8/log 3 ≈ 1.8928。门格海绵是它在三维空间中的推广。</p>
<h1>构造</h1>
<p>谢尔宾斯基地毯的构造与谢尔宾斯基三角形相似，区别仅在于谢尔宾斯基地毯是以正方形而非等边三角形为基础的。将一个实心正方形划分为的9个小正方形，去掉中间的小正方形，再对余下的小正方形重复这一操作便能得到谢尔宾斯基地毯。如下图</p>
<div></div>
<p>谢尔宾斯基地毯可以由以下计算机程序构造：</p>
<p>Decides if a point at a specific location is filled or not.</p>
<p>@param x is the x coordinate of the point being checked</p>
<p>@param y is the y coordinate of the point being checked</p>
<p>@param width is the width of the Sierpinski Carpet being checked</p>
<p>@param height is the height of the Sierpinski Carpet being checked</p>
<p>@return 1 if it is to be filled or 0 if it is not</p>
<p>*/ int isSierpinskiCarpetPixelFilled(int x,int y,int width,int height)</p>
<p>{// base caseif (x&lt;1)</p>
<p>{return 0;}</p>
<p>{/*If the grid was split in 9 parts, what part(x2,y2) would x,y fit into?*/</p>
<p>int x2 = x*3/width; // an integer from 0..2 inclusive</p>
<p>int y2 = y*3/height; // an integer from 0..2 inclusive</p>
<p>if (x2==1 &amp;&amp; y2==1) // if in the centre squaure, it should be filled.return 1;/* offset x and y so it becomes bounded by 0..width/3 and 0..height/3and prepares for recursive callx-=x2*width/3;y-=y2*height/3}return isSierpinskiCarpetPixelFilled(x,y,width/3,height/3);</p>
</article>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aitaocui.cn/article/280630.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
