<?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>Josep Valls &#187; Mates</title>
	<atom:link href="http://josep.valls.name/wordpress/categories/mates/feed/" rel="self" type="application/rss+xml" />
	<link>http://josep.valls.name/wordpress</link>
	<description>Software and information engineering from a personal point of view</description>
	<lastBuildDate>Mon, 31 Oct 2011 17:35:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Floyd–Warshall</title>
		<link>http://josep.valls.name/wordpress/floyd%e2%80%93warshall/</link>
		<comments>http://josep.valls.name/wordpress/floyd%e2%80%93warshall/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 00:48:53 +0000</pubDate>
		<dc:creator>Josep Valls</dc:creator>
				<category><![CDATA[Mates]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://josep.valls.name/wordpress/?p=410</guid>
		<description><![CDATA[It was 2am and I had an exercice where I had to do a Floyd–Warshall algorithm over a graph to get the maximum cost among the minimum paths. The numbers on the paper began to blur and I found it way easier to copy the pseudocode from Wikipedia and translate into Python than to actually [...]]]></description>
			<content:encoded><![CDATA[<p>It was 2am and I had an exercice where I had to do a Floyd–Warshall algorithm over a graph to get the maximum cost among the minimum paths. The numbers on the paper began to blur and I found it way easier to copy the pseudocode from Wikipedia and translate into Python than to actually do it. Am I awesome? Is there something wrong with me?</p>
<p>Here you are.</p>
<pre>#n = num of vertices
n = 7
#this is my little aproximation to infinity... didn't want to get into the docs
m = 1e1000
#this is the matrix that describes de graph
path = [[0,4,3,m,m,m,m],[4,0,4,6,m,6,m],[3,4,0,6,m,m,m],[m,6,6,0,4,4,6],[m,m,m,4,0,6,10],[m,6,m,4,6,0,2],[m,m,m,6,10,2,0]]
for k in xrange(n):
	for i in xrange(n):
		for j in xrange(n):
			path[i][j] = min ( path[i][j], path[i][k]+path[k][j] )
			print path</pre>
]]></content:encoded>
			<wfw:commentRss>http://josep.valls.name/wordpress/floyd%e2%80%93warshall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lunes cálculo</title>
		<link>http://josep.valls.name/wordpress/dilluns-calcul/</link>
		<comments>http://josep.valls.name/wordpress/dilluns-calcul/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 17:17:30 +0000</pubDate>
		<dc:creator>Josep Valls</dc:creator>
				<category><![CDATA[Mates]]></category>

		<guid isPermaLink="false">http://josep.valls.name/wordpress/?p=93</guid>
		<description><![CDATA[Lunes cálculo, a ver si puedo colgar más apuntes pronto. e = 2 .7 1 8 2 8 1 8 2 8 4 5 9 0 4 5 2 3 5 3 6 0 2 8 7 4 7 1 3 5 2 6 6 2 4 9 7 7 5 7 2 4 7 [...]]]></description>
			<content:encoded><![CDATA[<p>Lunes cálculo, a ver si puedo colgar más apuntes pronto.</p>
<p>e = 2 .7 1 8 2 8 1 8 2 8 4 5 9 0 4 5 2 3 5 3 6 0 2 8 7 4 7 1 3 5 2 6 6 2 4 9 7 7 5 7 2 4 7 0 9 3 6 9 9 9 5 9 5 7 4 9 6 6 9 6 7 6 2 7 7 2 4 0 7 6 6 3 0 3 5 3 5 4 7 5 9 4 5 7 1 3 8 2 1 7 8 5 2 5 1 6 6 4 2 7 4 2 7 4 6 6 3 9 1 9 3 2 0 0 3 0 5 9 9 2 1 8 1 7 4 1 3 5 9 6 6 2 9 0 4 3 5 7 2 9 0 0 3 3 4 2 9 5 2 6 0 5 9 5 6 3 0 7 3 8 1 3 2 3 2 8 6 2 7 9 4 3 4 9 0 7 6 3 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2 0 6 9 8 1 1 2 5 0 9 9 6 1 8 1 8 8 1 5 9 3 0 4 1 6 9 0 3 5 1 5 9 8 8 8 8 5 1 9 3 4 5 8 0 7 2 7 3 8 6 6 7 3 8 5 8 9 4 2 2 8 7 9 2 2 8 4 9 9 8 9 2 0 8 6 8 0 5 8 2 5 7 4 9 2 7 9 6 1 0 4 8 4 1 9 8 4 4 4 3 6 3 4 6 3 2 4 4 9 6 8 4 8 7 5 6 0 2 3 3 6 2 4 8 2 7 0 4 1 9 7 8 6 2 3 2 0 9 0 0 2 1 6 0 9 9 0 2 3 5 3 0 4 3 6 9 9 4 1 8 4 9 1 4 6 3 1 4 0 9 3 4 3 1 7 3 8 1 4 3 6 4 0 5 4 6 2 5 3 1 5 2 0 9 6 1 8 3 6 9 0 8 8 8 7 0 7 0 1 6 7 6 8 3 9 6 4 2 4 3 7 8 1 4 0 5 9 2 7 1 4 5 6 3 5 4 9 0 6 1 3 0 3 1 0 7 2 0 8 5 1 0 3 8 3 7 5 0 5 1 0 1 1 5 7 4 7 7 0 4 1 7 1 8 9 8 6 1 0 6 8 7 3 9 6 9 6 5 5 2 1 2 6 7 1 5 4 6 8 8 9 5 7 0 3 5 0 3 5 4 0 2 1 2 3 4 0 7 8 4 9 8 1 9 3 3 4 3 2 1 0 &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://josep.valls.name/wordpress/dilluns-calcul/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2+3</title>
		<link>http://josep.valls.name/wordpress/23-2/</link>
		<comments>http://josep.valls.name/wordpress/23-2/#comments</comments>
		<pubDate>Thu, 12 Apr 2007 14:09:55 +0000</pubDate>
		<dc:creator>Josep Valls</dc:creator>
				<category><![CDATA[Mates]]></category>

		<guid isPermaLink="false">http://josep.valls.name/wordpress/?p=46</guid>
		<description><![CDATA[Hoy la professora de matemáticas ha escrito en la pizarra 2+3≠5]]></description>
			<content:encoded><![CDATA[<p>Hoy la professora de matemáticas ha escrito en la pizarra  <span style="font-size: 12pt">2+3≠5</span></p>
]]></content:encoded>
			<wfw:commentRss>http://josep.valls.name/wordpress/23-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

