<?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>NerdyRoom™ &#187; Mathe</title>
	<atom:link href="http://www.nrtm.de/index.php/tag/mathe/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nrtm.de</link>
	<description>never read the manual</description>
	<lastBuildDate>Mon, 06 Feb 2012 21:02:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Anzahl der Nullteiler in Zn</title>
		<link>http://www.nrtm.de/index.php/2010/01/13/anzahl-der-nullteiler-in-zn/</link>
		<comments>http://www.nrtm.de/index.php/2010/01/13/anzahl-der-nullteiler-in-zn/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 16:52:32 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[science]]></category>
		<category><![CDATA[Mathe]]></category>
		<category><![CDATA[nullteiler]]></category>
		<category><![CDATA[restklassenring]]></category>

		<guid isPermaLink="false">http://www.nrtm.de/?p=2209</guid>
		<description><![CDATA[Beim Mathelernen auf was schönes gestoßen. In Restklassenringen gibt es bezüglich der Multiplikation sogenannte Nullteiler, das sind Zahlen ungleich 0 die mit einer weiteren Zahl aus dem Restklassenring multipliziert 0 ergeben. Schaut man sich die Anzahl dieser Nullteiler pro Restklassenring an sieht das so aus &#8230; Mathe ist doch immer wieder schön anzusehen.]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Beim Mathelernen auf was schönes gestoßen. In <a href="http://de.wikipedia.org/wiki/Restklassenring" target="_blank">Restklassenringen</a> gibt es bezüglich der Multiplikation sogenannte <a href="http://de.wikipedia.org/wiki/Nullteiler" target="_blank">Nullteiler</a>, das sind Zahlen ungleich 0 die mit einer weiteren Zahl aus dem Restklassenring multipliziert 0 ergeben. Schaut man sich die Anzahl dieser Nullteiler pro Restklassenring an sieht das so aus &#8230; Mathe ist doch immer wieder schön anzusehen.</p>
<p><a href="http://www.nrtm.de/wp-content/uploads/2010/01/nullteiler-in-Zn-bzgl-mult.png"><img class="aligncenter size-medium wp-image-2210" title="nullteiler-in-Zn-bzgl-mult" src="http://www.nrtm.de/wp-content/uploads/2010/01/nullteiler-in-Zn-bzgl-mult-300x194.png" alt="" width="300" height="194" /></a></p>
 <p><a href="http://www.nrtm.de/?flattrss_redirect&amp;id=2209&amp;md5=98d38fa6226209a64ada09873d2f8a64" title="Flattr" target="_blank"><img src="https://www.nrtm.de/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nrtm.de/index.php/2010/01/13/anzahl-der-nullteiler-in-zn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.nrtm.de/?flattrss_redirect&amp;id=2209&amp;md5=98d38fa6226209a64ada09873d2f8a64" type="text/html" />
	</item>
		<item>
		<title>Weihnachtsrätsel 7.12.</title>
		<link>http://www.nrtm.de/index.php/2009/12/07/weihnachtsratsel-7-12/</link>
		<comments>http://www.nrtm.de/index.php/2009/12/07/weihnachtsratsel-7-12/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 09:08:30 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[nerdcore]]></category>
		<category><![CDATA[Mathe]]></category>
		<category><![CDATA[weihnachtsrätsel]]></category>

		<guid isPermaLink="false">http://www.nrtm.de/?p=2067</guid>
		<description><![CDATA[Mathe Unter was ist die &#8220;Haariger Ball Theorie&#8221; im deutschen Sprachraum bekannt? Zum nrtm.de Weihnachtsrätsel.]]></description>
			<content:encoded><![CDATA[<p><strong>Mathe</strong></p>
<p>Unter was ist die &#8220;<em>Haariger Ball Theorie</em>&#8221; im deutschen Sprachraum bekannt?</p>
<p><a href="http://www.nrtm.de/index.php/2009/12/01/nrtm-de-weihnachtsratsel/" target="_blank">Zum nrtm.de Weihnachtsrätsel.</a></p>
 <p><a href="http://www.nrtm.de/?flattrss_redirect&amp;id=2067&amp;md5=ffff5a97c5654cf206d65316df390b05" title="Flattr" target="_blank"><img src="https://www.nrtm.de/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nrtm.de/index.php/2009/12/07/weihnachtsratsel-7-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.nrtm.de/?flattrss_redirect&amp;id=2067&amp;md5=ffff5a97c5654cf206d65316df390b05" type="text/html" />
	</item>
		<item>
		<title>Kombinatorik : effiziente Berechnung der Varianten</title>
		<link>http://www.nrtm.de/index.php/2009/04/14/kombinatorik-n-choose-k-effiziente-berechnung-der-varianten/</link>
		<comments>http://www.nrtm.de/index.php/2009/04/14/kombinatorik-n-choose-k-effiziente-berechnung-der-varianten/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 21:04:19 +0000</pubDate>
		<dc:creator>jens</dc:creator>
				<category><![CDATA[hpc]]></category>
		<category><![CDATA[nerdcore]]></category>
		<category><![CDATA[Algorithmus]]></category>
		<category><![CDATA[fortran]]></category>
		<category><![CDATA[Kombinatorik]]></category>
		<category><![CDATA[Mathe]]></category>

		<guid isPermaLink="false">http://www.nrtm.de/?p=593</guid>
		<description><![CDATA[Ich hatte schon früher das Problem einen Algorithmus zu finden um alle Varianten der Positionierung von k Elementen auf n Plätzen zu ermitteln (also Möglichkeiten der Positionierung), besonders wenns um Speichereffizenz (nicht alle Kombination speichern) geht. Jupp hat mich heut wieder auf das Problem gestoßen und ich hab endlich eine &#8220;schöne&#8221; Lösung gefunden (es wird [...]]]></description>
			<content:encoded><![CDATA[<p>Ich hatte schon früher das Problem einen Algorithmus zu finden um alle Varianten der Positionierung von k Elementen auf n Plätzen zu ermitteln (also <img src="http://l.wordpress.com/latex.php?latex=%7Bn%20%5Cchoose%20k%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=1" title="{n \choose k}" style="vertical-align:-20%;" class="tex" alt="{n \choose k}" /> Möglichkeiten der Positionierung), besonders wenns um Speichereffizenz (nicht alle Kombination speichern) geht. Jupp hat mich heut wieder auf das Problem gestoßen und ich hab endlich eine &#8220;schöne&#8221; Lösung gefunden (es wird nicht viel benötigt, nur ein paar Schleifen und die Berechnung des Binomialkoeff.):</p>

<div class="wp_syntax"><div class="code"><pre class="fortran" style="font-family:monospace;"><span style="color: #b1b100;">program</span> iterkombi
	<span style="color: #000066;">implicit</span> <span style="color: #000066;">none</span>
	<span style="color: #000066;">integer</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">kind</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>, <span style="color: #000066;">parameter</span> <span style="color: #339933;">::</span> <span style="color: #202020;">n</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">6</span>, k<span style="color: #339933;">=</span><span style="color: #cc66cc;">2</span>
	<span style="color: #000066;">integer</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">kind</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">::</span> <span style="color: #202020;">tmpN</span>, tmpK, ind, pos, i, j
	<span style="color: #000066;">integer</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">kind</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>, <span style="color: #000066;">dimension</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span>n<span style="color: #009900;">&#41;</span> <span style="color: #339933;">::</span> <span style="color: #202020;">arrayP</span>
	<span style="color: #000066;">character</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">len</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">15</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">::</span> <span style="color: #202020;">str</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">! schleife über Nr. der Kombination</span>
	<span style="color: #b1b100;">do</span> j<span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span>, binomial<span style="color: #009900;">&#40;</span>n,k<span style="color: #009900;">&#41;</span>, <span style="color: #cc66cc;">1</span>
		ind <span style="color: #339933;">=</span> j
		tmpN <span style="color: #339933;">=</span> n; tmpK <span style="color: #339933;">=</span> k
		pos <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span>; arrayP <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span>
		<span style="color: #666666; font-style: italic;">! jedes der k Elemente positionieren</span>
		<span style="color: #b1b100;">do</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span>, k, <span style="color: #cc66cc;">1</span>
			pos <span style="color: #339933;">=</span> pos <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span>
			<span style="color: #b1b100;">do</span> <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span> ind <span style="color: #339933;">-</span> binomial<span style="color: #009900;">&#40;</span>tmpN<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span>,tmpK<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> &gt; <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span>
				ind <span style="color: #339933;">=</span> ind <span style="color: #339933;">-</span> binomial<span style="color: #009900;">&#40;</span>tmpN<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span>,tmpK<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
				tmpN <span style="color: #339933;">=</span> tmpN <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span>
				pos <span style="color: #339933;">=</span> pos <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span>
			<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">do</span>
			tmpN <span style="color: #339933;">=</span> n <span style="color: #339933;">-</span> pos
			tmpK <span style="color: #339933;">=</span> tmpK <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span>
			arrayP<span style="color: #009900;">&#40;</span> pos <span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span>
		<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">do</span>
		write<span style="color: #009900;">&#40;</span>str,<span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span> n
		write<span style="color: #009900;">&#40;</span><span style="color: #b1b100;">unit</span><span style="color: #339933;">=*</span>,<span style="color: #b1b100;">fmt</span><span style="color: #339933;">=</span><span style="color: #ff0000;">'(A,I0,A,A,'</span><span style="color: #339933;">//</span>str<span style="color: #339933;">//</span><span style="color: #ff0000;">'I1)'</span><span style="color: #009900;">&#41;</span> <span style="color: #ff0000;">&quot;Belegungsarray (Nr. &quot;</span>, j, <span style="color: #ff0000;">&quot;): &quot;</span>, <span style="color: #993333;">char</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span>, arrayP
	<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">do</span>
&nbsp;
	<span style="color: #b1b100;">contains</span>
&nbsp;
	<span style="color: #b1b100;">function</span> binomial<span style="color: #009900;">&#40;</span> n,k <span style="color: #009900;">&#41;</span>
		<span style="color: #000066;">integer</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">kind</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">::</span> <span style="color: #202020;">binomial</span>
		<span style="color: #000066;">integer</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">kind</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">::</span> <span style="color: #202020;">n</span>, k, i, x, y
		x <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span>; y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span>
		<span style="color: #b1b100;">do</span> i<span style="color: #339933;">=</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span>, n, <span style="color: #cc66cc;">1</span>
			x <span style="color: #339933;">=</span> x<span style="color: #339933;">*</span>i 	<span style="color: #666666; font-style: italic;">! n!/k!</span>
		<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">do</span>
		<span style="color: #b1b100;">do</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">2</span>, n<span style="color: #339933;">-</span>k, <span style="color: #cc66cc;">1</span>
			y <span style="color: #339933;">=</span> y<span style="color: #339933;">*</span>i 	<span style="color: #666666; font-style: italic;">! (n-k)!</span>
		<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">do</span>
		binomial <span style="color: #339933;">=</span> x <span style="color: #339933;">/</span> y
	<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">function</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">program</span></pre></div></div>

<p>Ausgabe:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Belegungsarray (Nr. 1): 	110000
Belegungsarray (Nr. 2): 	101000
Belegungsarray (Nr. 3): 	100100
Belegungsarray (Nr. 4): 	100010
Belegungsarray (Nr. 5): 	100001
Belegungsarray (Nr. 6): 	011000
Belegungsarray (Nr. 7): 	010100
Belegungsarray (Nr. 8): 	010010
Belegungsarray (Nr. 9): 	010001
Belegungsarray (Nr. 10): 	001100
Belegungsarray (Nr. 11): 	001010
Belegungsarray (Nr. 12): 	001001
Belegungsarray (Nr. 13): 	000110
Belegungsarray (Nr. 14): 	000101
Belegungsarray (Nr. 15): 	000011</pre></div></div>

<p>Der Vorteil: es kann jede Kombination einzeln berechnet werden ohne zu wissen wie die vorherige Kombination aussah.</p>
 <p><a href="http://www.nrtm.de/?flattrss_redirect&amp;id=593&amp;md5=070769293d94ec5941dfe4781b495854" title="Flattr" target="_blank"><img src="https://www.nrtm.de/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nrtm.de/index.php/2009/04/14/kombinatorik-n-choose-k-effiziente-berechnung-der-varianten/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" href="http://www.nrtm.de/?flattrss_redirect&amp;id=593&amp;md5=070769293d94ec5941dfe4781b495854" type="text/html" />
	</item>
	</channel>
</rss>

