<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Javi in the web</title>
	<atom:link href="http://yson.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yson.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 22 Aug 2007 15:37:45 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yson.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Javi in the web</title>
		<link>http://yson.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yson.wordpress.com/osd.xml" title="Javi in the web" />
	<atom:link rel='hub' href='http://yson.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Tema 2  de ADA &#8211; Reglas practicas para el calculo de la eficiencia.</title>
		<link>http://yson.wordpress.com/2007/08/22/tema-2-de-ada-reglas-practicas-para-el-calculo-de-la-eficiencia/</link>
		<comments>http://yson.wordpress.com/2007/08/22/tema-2-de-ada-reglas-practicas-para-el-calculo-de-la-eficiencia/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 15:37:35 +0000</pubDate>
		<dc:creator>yson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://yson.wordpress.com/2007/08/22/tema-2-de-ada-reglas-practicas-para-el-calculo-de-la-eficiencia/</guid>
		<description><![CDATA[Tema 2&#160; de ADA &#8211; Análisis y Diseño de Algoritmo Reglas practicas para el calculo de la eficiencia. Programas iterativos. No realizan llamadas a si mismos(recursivas). En un programa iterativo puede haber: de orden 1: asignaciones, entrada/salida, expresiones de orden 1 &#8211;&#62; tiempo constante. Sentecias secuenciales. Se aplica la regla de suma con las sentencias. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yson.wordpress.com&amp;blog=488971&amp;post=6&amp;subd=yson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b>Tema 2&nbsp; de ADA &#8211; Análisis y Diseño de Algoritmo</p>
<p>Reglas practicas para el calculo de la eficiencia.</p>
<p></b>
<ol>
<li>Programas iterativos. No realizan llamadas a si mismos(recursivas).</li>
</ol>
<ul>
<li>En un programa iterativo puede haber:</li>
<ul>
<li>de orden 1: asignaciones, entrada/salida, expresiones de orden 1 &#8211;&gt; tiempo constante.</li>
<li>Sentecias secuenciales. Se aplica la regla de suma con las sentencias. El orden seria el maximo de cada uno de los ordenes de las sentencias.</li>
<li>sentencias secuenciales. hay que tener en cuenta el caso mejor, peor y medio.</li>
<ul>
<li>Ejemplo:</li>
<li>if (c) sentencia1: orden n2 else sentencia2: orden n</li>
<li>El caso mejor sera cuandoi c = falso, (c NO es el tamaño del problema). Entonces el orden sera n.</li>
<li>El caso peor sera cuando c sea verdadero. En esta caso el orden será n2.</li>
<li>El caso medio debe estar entre el caso mejor y el peor.</li>
</ul>
<li>bucles. El orden será el orden máximo de las sentencias internas del bucle por el numero de veces que se ejecutara.</li>
<ul>
<li>Ejemplo:</li>
<li>mientras c (orden 1) Sentencias (orden n) finmientras</li>
<li>En este caso, la condicion del mientras, es de orden constante, luego siempre se ejecutara las sentencias de dentro un numero determinado de veces. El orden será 1·n o lo que es lo mismo n.</li>
<li>Ejemplo2:</li>
<li>mientras i</li>
<li>En este caso, es de orden n·n, orden cuadratico. Siendo f el tamaño del problema. la condicion se ejecutara n veces, y las sentencias del buqcle, que son de orden n, se ejecutaran n veces.</li>
</ul>
<li>llamadas a funciones. La llamada en sí, es constante, habiendole que sumar el coste ed los parametros, mas el coste de las sentencias que tiene la funcion o método.</li>
</ul>
</ul>
<p><b>Instrucción crítica<br /></b><br />Es una instrucción que se ejecutará igual o tantas veces mcomo cualquier otra del programa. <br />Es la instrucción que mas veces se puede ejecutar.</p>
<p>Ejermplo.(n es el tamaño del array)
<pre>desde i:=1 hasta n-1 j:=1 mientras j&lt;=n-1   si a[j]&gt;a[j+1]:      sentecias de orden 1   fsi   j:=j+1 fmientrasfdesde</pre>
<p>Del bucle interior, hacemos el sumatorio desde j =1 hasta n-1 de 1 (sp=sum(1) desde 1 hasta n-1)<br />Del bucle exterior hacemos el sumatorio desde i = 1 hasta n-1 del sumatorio interior. (sum (sp) desde 1 hasta n-1).</p>
<p>Resolviendo, obtenemos que es de orden cuadrado.</p>
<p>sum (sum(1) desde 1 hasta n-1) desde 1 hasta n-1</p>
<p>*sum quiere decir sumatorio</p>
<p><a href="https://msevents.microsoft.com/CUI/SearchDisplay.aspx?culture=es-ES&amp;evtTypHero=4#eventType=4;culture=es-ES;advanced=mnp;pageNumber=1;sortKey=;sortOrder=;pageEvent=false"><br /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/yson.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/yson.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yson.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yson.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yson.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yson.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yson.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yson.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yson.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yson.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yson.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yson.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yson.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yson.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yson.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yson.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yson.wordpress.com&amp;blog=488971&amp;post=6&amp;subd=yson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yson.wordpress.com/2007/08/22/tema-2-de-ada-reglas-practicas-para-el-calculo-de-la-eficiencia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13190090c5b68902d9ee2fc3c315b62c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">yson</media:title>
		</media:content>
	</item>
		<item>
		<title>hola</title>
		<link>http://yson.wordpress.com/2007/06/20/hola/</link>
		<comments>http://yson.wordpress.com/2007/06/20/hola/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 18:00:53 +0000</pubDate>
		<dc:creator>yson</dc:creator>
				<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://yson.wordpress.com/2007/06/20/hola/</guid>
		<description><![CDATA[Hola hola hola<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yson.wordpress.com&amp;blog=488971&amp;post=5&amp;subd=yson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hola hola hola</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/yson.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/yson.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yson.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yson.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yson.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yson.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yson.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yson.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yson.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yson.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yson.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yson.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yson.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yson.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yson.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yson.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yson.wordpress.com&amp;blog=488971&amp;post=5&amp;subd=yson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yson.wordpress.com/2007/06/20/hola/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13190090c5b68902d9ee2fc3c315b62c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">yson</media:title>
		</media:content>
	</item>
	</channel>
</rss>
