tag:blogger.com,1999:blog-29710885400471539932024-03-14T00:49:57.242-07:00Lenguajes De ProgramaciónUnknownnoreply@blogger.comBlogger11125tag:blogger.com,1999:blog-2971088540047153993.post-64109592679893983762010-11-17T21:02:00.000-08:002010-11-17T21:02:08.496-08:00Reporte #8<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Multiparadigma</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: large;">Oz</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: large;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: sans-serif; line-height: 19px;">Oz contiene una forma simple y bien hecha de la mayoría de los conceptos de los principales paradigmas de programación, incluyendo <a href="http://es.wikipedia.org/wiki/Programaci%C3%B3n_l%C3%B3gica" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; text-decoration: none;" title="Programación lógica"><span class="Apple-style-span" style="color: black;">programación lógica</span></a>, <a href="http://es.wikipedia.org/wiki/Programaci%C3%B3n_funcional" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; text-decoration: none;" title="Programación funcional"><span class="Apple-style-span" style="color: black;">funcional</span></a>, <a href="http://es.wikipedia.org/wiki/Programaci%C3%B3n_imperativa" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; text-decoration: none;" title="Programación imperativa"><span class="Apple-style-span" style="color: black;">imperativa</span></a>,<a href="http://es.wikipedia.org/wiki/Programaci%C3%B3n_orientada_a_objetos" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; text-decoration: none;" title="Programación orientada a objetos"><span class="Apple-style-span" style="color: black;">orientada a objetos</span></a>, <a href="http://es.wikipedia.org/wiki/Programaci%C3%B3n_con_restricciones" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; text-decoration: none;" title="Programación con restricciones"><span class="Apple-style-span" style="color: black;">con restricciones</span></a>, <a href="http://es.wikipedia.org/wiki/Programaci%C3%B3n_distribuida" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; text-decoration: none;" title="Programación distribuida"><span class="Apple-style-span" style="color: black;">distribuida</span></a>, <span class="Apple-style-span" style="color: black;">concurrente</span>.</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: sans-serif; line-height: 19px;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: sans-serif; line-height: 19px;">Como complemento a la programación multiparadigma, las principales ventajas de Oz radican en la programación con restricciones y la programación distribuida. Debido a su diseño, Oz implementa un modelo de programación distribuido que hace a la red transparente. Este modelo hace fácil programar aplicaciones abiertas y tolerantes a fallas en el lenguaje. Para Programación con restricciones, Oz introduce la idea de espacios de computación, los cuales permiten búsquedas definidas por el usuario y estrategias de distribución que son ortogonales al dominio de restricciones.</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: sans-serif; line-height: 19px;"><br />
</span></span><br />
<br />
<span class="keyword" style="color: #a020f0;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">local </span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"> I F C <span class="keyword" style="color: #a020f0;">in</span> //Declaramos las variables I, F y C<br />
I = 5 //Asigna a I un entero<br />
F = 5<span class="keyword" style="color: #a020f0;">.</span>5 //Asigna a F un float<br />
C = <span class="string" style="color: rosybrown;">&t</span> //Asigna a C un caracter<br />
{Browse [I F C]} //Muestra el valor de I, F y C<br />
<span class="keyword" style="color: #a020f0;">end</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="keyword" style="color: #a020f0;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Bibliografia</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><a href="http://www.mozart-oz.org/documentation/tutorial/node3.html#chapter.basics">http://www.mozart-oz.org/documentation/tutorial/node3.html#chapter.basics</a></span><br />
<a href="http://es.wikipedia.org/wiki/Oz_(lenguaje_de_programaci%C3%B3n)">http://es.wikipedia.org/wiki/Oz_(lenguaje_de_programaci%C3%B3n)</a>Unknownnoreply@blogger.com14tag:blogger.com,1999:blog-2971088540047153993.post-58724030745555498372010-11-17T20:49:00.000-08:002010-11-17T20:49:51.944-08:00Reporte #7<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Lenguajes Orientados A Objetos:</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Java y C++</span><br />
<br />
<div style="text-align: center;"><img height="200" src="http://t3.gstatic.com/images?q=tbn:ANd9GcTx4HhWuCyJg_RnH5HEXPZSZ-FNvyZJkFh-9edE-CPQc77c3Wpxag" width="107" /></div><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Ejemplo:</span><br />
<br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Se desea ingresar por teclado tres resultados de exámenes, e imprimir el 1º y último.<o:p></o:p></span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></span></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_EpxBMiy6ppw/TOSqVCLEbYI/AAAAAAAAACk/d16Teq62IUw/s1600/Nueva+imagen.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_EpxBMiy6ppw/TOSqVCLEbYI/AAAAAAAAACk/d16Teq62IUw/s1600/Nueva+imagen.bmp" /></a></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_EpxBMiy6ppw/TOSq42XHvoI/AAAAAAAAACs/m0SBoQCcuqw/s1600/Nueva+imagen+%25281%2529.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/_EpxBMiy6ppw/TOSq42XHvoI/AAAAAAAAACs/m0SBoQCcuqw/s1600/Nueva+imagen+%25281%2529.bmp" /></a></div><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">La salida por pantalla será algo como esto:</span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_EpxBMiy6ppw/TOSqyq_eyoI/AAAAAAAAACo/X3UuJ06z-Hc/s1600/Nueva+imagen+%25282%2529.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_EpxBMiy6ppw/TOSqyq_eyoI/AAAAAAAAACo/X3UuJ06z-Hc/s1600/Nueva+imagen+%25282%2529.bmp" /></a></div><br />
<br />
<br />
<div style="text-align: center;"><img height="149" src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBhAQEBAQDxAQDxAQDw8QDw8QEA8PEBAPFBAVFBQQFBIXHCYeFxkjGRQUHy8gIycpLCwsFR4xNTAqNSYrLCkBCQoKDgwOGg8PFykkHxwpKSwpLCwsKSwpKSkpKSksKSwsKSkpKSkpKSkpKSkpLCwpKSksKSkpKSkpKSkpLCwpKf/AABEIAMIBAwMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAEAAECAwUGBwj/xAA5EAACAgECAwYDBQcEAwAAAAABAgADEQQhBRIxBhNBUWFxIoG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wZT0ZSCD8xLeWeN6DiV1B5qbGQ+QOx9x0M6zhf2hsMDU18w8Xr2b3KnY/KZ3x34XM47giRIgnD+N6fUf+qxSfwn4XH8phxEzWrIkSJYRGxAlZEiVlpEiRAKisiVlxEiRGFJWRKy4rIlYBQVkLKgwIYAg9QdxCCsiVgTg+0n2WaXVZZP8ASc/0kzyTtP8AZtqtIxPIWTwYbgz6UKyuyoMMMAw8iMiKw5XyDbQyHDAgyufSHan7MdLqwWrUVWY8BsTPGO03YLU6NjzISvgwGQRJ0qVy0UdlI2MaIzk567xRooA+I+ZGODAJKxHQkY6Ymtw/tVqqD8NrMBtyseYTIixAO/4f9qbja2v5qZ03DftF01uAXCMTjlfaeNRCVMqWnv47QV/iH1ingy2Dzz9Y0r3T6vXxJCNFOlgkJIR4owkJIRRRksViNxsR0I2InpnZK9n06l2Zz5sSx/OKKZ+XpeHbaMYxRTnbGkYooEYyJiigDGRMUUYRMiYooEgZExRQCJmZ2hqVtPZzKG+E9QDFFGI+X+0Kgah8DG56TNiimTQooooAooooBJZYoiigDsowZGz0iigEYoooB//Z" width="200" /></div><div style="text-align: center;"><br />
</div><div style="text-align: left;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">El siguiente programa realiza una clase para crear un punto con las coordenadas (X ,Y) :</span></div><div style="text-align: left;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_EpxBMiy6ppw/TOSuaT_WoII/AAAAAAAAAC0/C4AZzc7gs0s/s1600/Nueva+imagen+%25284%2529.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="163" src="http://4.bp.blogspot.com/_EpxBMiy6ppw/TOSuaT_WoII/AAAAAAAAAC0/C4AZzc7gs0s/s400/Nueva+imagen+%25284%2529.bmp" width="400" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div style="text-align: left;"><br />
</div><div style="text-align: left;">Bibliografia</div><div style="text-align: left;"><a href="http://www.compunauta.com/forums/linux/programacion/java/AprendiendoJava.pdf">http://www.compunauta.com/forums/linux/programacion/java/AprendiendoJava.pdf</a></div><div style="text-align: left;"><a href="http://es.wikipedia.org/wiki/C%2B%2B">http://es.wikipedia.org/wiki/C%2B%2B</a></div>Unknownnoreply@blogger.com12tag:blogger.com,1999:blog-2971088540047153993.post-52304179557850201732010-11-10T20:32:00.000-08:002010-11-10T20:32:25.176-08:00Reporte # 6 Lenguajes Imperativos<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Los Lenguajes que elegí son : C, Fortran, Pascal y Basic</span><br />
<br />
<span class="Apple-style-span" style="font-size: xx-large;">C</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">El programa que hice es el siguiente: </span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Este es un programa que busca en una matriz el numero de veces que se repite determinado numero.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_EpxBMiy6ppw/TNtmtigU8CI/AAAAAAAAABs/qBYcAJigq8M/s1600/Nueva+imagen+%25285%2529.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="295" src="http://3.bp.blogspot.com/_EpxBMiy6ppw/TNtmtigU8CI/AAAAAAAAABs/qBYcAJigq8M/s320/Nueva+imagen+%25285%2529.bmp" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: left;">Compilamos...</div><div class="separator" style="clear: both; text-align: left;">Primero nos pide el numero de filas y columnas, en este caso, hice una matriz de 3x3</div><div class="separator" style="clear: both; text-align: left;">Luego nos pide cada elemento de la matriz;</div><div class="separator" style="clear: both; text-align: left;">Después nos pide el numero que va a buscar : yo elegi el 2</div><div class="separator" style="clear: both; text-align: left;">y al final "imprime" la matriz y el numero de veces que se repite el numero buscado:</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_EpxBMiy6ppw/TNtnkNVXlzI/AAAAAAAAABw/ID7orWLaf5g/s1600/Nueva+imagen+%25286%2529.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="174" src="http://2.bp.blogspot.com/_EpxBMiy6ppw/TNtnkNVXlzI/AAAAAAAAABw/ID7orWLaf5g/s320/Nueva+imagen+%25286%2529.bmp" width="320" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: xx-large;">Fortran</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">El programa calcula el factorial de un numero:</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">FUNCTION factorial(n) <o:p></o:p></span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span lang="EN-US" style="font-size: 10pt;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">INTEGER factorial<o:p></o:p></span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span lang="EN-US" style="font-size: 10pt;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">INTEGER, INTENT(IN) :: n<o:p></o:p></span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span lang="EN-US" style="font-size: 10pt;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">IF (n==0) THEN<o:p></o:p></span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span lang="EN-US" style="font-size: 10pt;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">factorial = 1<o:p></o:p></span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span lang="EN-US" style="font-size: 10pt;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">ELSE<o:p></o:p></span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span lang="EN-US" style="font-size: 10pt;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">factorial = factorial * factorial(n-1)<o:p></o:p></span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">END IF<o:p></o:p></span></span></div><div class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">END FUNCTION factorial</span><span class="Apple-style-span" style="font-family: 'Courier New';"><o:p></o:p></span></span></div><div class="MsoNormal" style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: small;"><span class="Apple-style-span" style="font-size: 13px; line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-size: xx-large; line-height: 14px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Pascal</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">El programa en pascal calcula el área de un triangulo en base a los datos que damos:</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">Program area;</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">var area, base, altura : real;</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">begin</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">write ('Dame Base : ');</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">readln(base);</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">write('Dame Altura: ')</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 14px;">readln(altura);</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">area := (base * altura)/2 </span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">writeln('El Area es =', area:0:2); {:0:2 sirve para dar el formato de salida al numero}</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">readln;</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;">end</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_EpxBMiy6ppw/TNtq5yGksnI/AAAAAAAAAB4/eN9focqpvXQ/s1600/image233.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_EpxBMiy6ppw/TNtq5yGksnI/AAAAAAAAAB4/eN9focqpvXQ/s1600/image233.jpg" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><span class="Apple-style-span" style="font-size: xx-large;">Basic</span></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Programa que calcula la serie de fibonacci:</span></div><div class="separator" style="clear: both; text-align: left;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><span class="Apple-style-span" style="color: #333333; font-family: arial, helvetica, clean, sans-serif; line-height: 16px;">Private Sub Form_Load()<br />
Dim fibonacci(20) As Long<br />
Dim i As Integer<br />
fibonacci(1) = 1<br />
fibonacci(2) = 1<br />
For intCount = 3 To 10<br />
fibonacci(intCount) = fibonacci(intCount - 1) + fibonacci(intCount - 2)<br />
Next intCount<br />
For i = 1 To 10<br />
Debug.Print fibonacci(i)<br />
Next i<br />
End Sub</span></span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><span class="Apple-style-span" style="color: #333333; font-family: arial, helvetica, clean, sans-serif; line-height: 16px;"><br />
</span></span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><span class="Apple-style-span" style="color: #333333; font-family: arial, helvetica, clean, sans-serif; line-height: 16px;"><br />
</span></span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><span class="Apple-style-span" style="color: #333333; font-family: arial, helvetica, clean, sans-serif; line-height: 16px;"><br />
</span></span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #333333; font-family: arial, helvetica, clean, sans-serif;"><span class="Apple-style-span" style="line-height: 16px;">Bibliografía</span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #333333; font-family: arial, helvetica, clean, sans-serif;"><span class="Apple-style-span" style="line-height: 16px;"><a href="http://es.wikipedia.org/wiki/C_(lenguaje_de_programaci%C3%B3n)">http://es.wikipedia.org/wiki/C_(lenguaje_de_programaci%C3%B3n)</a></span></span></div><div class="MsoNormal"><span class="Apple-style-span" style="color: #333333; font-family: arial, helvetica, clean, sans-serif;"><a href="http://en.wikipedia.org/wiki/C_(programming_language)">http://en.wikipedia.org/wiki/C_(programming_language)</a></span></div><div class="MsoNormal"><a href="http://www.fismat.umich.mx/mn1/manual/">http://www.fismat.umich.mx/mn1/manual/</a></div><div class="MsoNormal"><a href="http://es.wikipedia.org/wiki/Fortran">http://es.wikipedia.org/wiki/Fortran</a></div><div class="MsoNormal"><a href="http://mat21.etsii.upm.es/ayudainf/aprendainf/Fortran90/Fortran90.pdf">http://mat21.etsii.upm.es/ayudainf/aprendainf/Fortran90/Fortran90.pdf</a></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 14px;"><br />
</span></span></div>Unknownnoreply@blogger.com10tag:blogger.com,1999:blog-2971088540047153993.post-13473189353724339612010-10-29T15:01:00.000-07:002010-10-29T15:05:06.634-07:00Presentación # 3Cifrado RSA<br />
<br />
<div id="__ss_5612385" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a href="http://www.slideshare.net/AlbertoHJ92/cifrado-rsa" title="Cifrado rsa">Cifrado rsa</a></strong><object height="355" id="__sse5612385" width="425"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=cifradorsa-101029165007-phpapp01&stripped_title=cifrado-rsa&userName=AlbertoHJ92" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse5612385" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=cifradorsa-101029165007-phpapp01&stripped_title=cifrado-rsa&userName=AlbertoHJ92" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><br />
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/AlbertoHJ92">AlbertoHJ92</a>.<br />
<br />
Diagrama De Flujo</div></div><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_EpxBMiy6ppw/TMtDzV0v6vI/AAAAAAAAABk/4Q70Xwjk1EI/s1600/Nueva+imagen+(2).bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_EpxBMiy6ppw/TMtDzV0v6vI/AAAAAAAAABk/4Q70Xwjk1EI/s1600/Nueva+imagen+(2).bmp" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">Equipo </div><div class="separator" style="clear: both; text-align: left;"><a href="http://raulprogramando.blogspot.com/">Raúl Rodríguez Salazar</a> </div><div class="separator" style="clear: both; text-align: left;"><a href="http://www.jcesar9287.blogspot.com/">Julio García Lechuga</a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div>Unknownnoreply@blogger.com10tag:blogger.com,1999:blog-2971088540047153993.post-60930650054171629712010-10-20T19:45:00.000-07:002010-11-11T17:10:22.250-08:00Tarea # 5 Problema Lógico<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Caníbales y Misioneros</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">Tres misioneros y tres canibales se encuentran juntos, con un bote, en el mismo lado del rio, el bote puede transportar como maximo 2 personas . La unica manera segura de hacerlo es que en cada orilla del río nunca puedan haber mas canibales que misioneros, ¿Como podemos trasladar a las 6 personas de un lado del rio al otro? </span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">En seguida pondré los pasos que realice para encontrara la solución al problema.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">Comencé con los 3 misioneros y los 3 caníbales del lado derecho y tendrán que cruzar al lado izquierdo del río : </span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"></span><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">C=</span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;"> caníbales</span></span><br />
<span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">M=misioneros</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">Estado inicial </span><br />
<span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Lado Izquierdo Lado derecho</span></span><br />
<span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"></span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">0M; 0C 3M; 3C</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;"></span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">2C 3M; 1C</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">1C 3M; 2C</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">3C 3M</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">2C 3M; 1C</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">2C; 2M 1M; 1C</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">1C; 1M 2M; 2C</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">1C; 3M 2C</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">3M 3C</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">3M; 2C 1C</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">3M; 1C 2C</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">3M; 3C</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;">Este es un link del problema de "caníbales y misioneros" en el que podrán probar mi solución o encontrar alguna otra: <a href="http://www.plastelina.net/games/game2.html">http://www.plastelina.net/games/game2.html</a></span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Prolog</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: small;">Y aquí el código en Prolog</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: small;"><br />
</span></span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_EpxBMiy6ppw/TNyMVnsacLI/AAAAAAAAAB8/brF5uWGCV0Y/s1600/Nueva+imagen+%25288%2529.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/_EpxBMiy6ppw/TNyMVnsacLI/AAAAAAAAAB8/brF5uWGCV0Y/s1600/Nueva+imagen+%25288%2529.bmp" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><span class="Apple-style-span" style="line-height: 20px; white-space: pre;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">% predicado a llamar desde la consola (esto lo usaremos para mostrar el resultado)</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 20px; white-space: pre;"></span><span class="Apple-style-span" style="line-height: 20px; white-space: pre;">resolverCanMis(S):- busquedaProf(estado(3,3,0,0,0),[estado(3,3,0,0,0)],S).</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 20px; white-space: pre;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 20px; white-space: pre;"></span></span><a href="http://1.bp.blogspot.com/_EpxBMiy6ppw/TNyQpCNwMhI/AAAAAAAAACA/8Z0HkZMr3zY/s1600/Nueva+imagen+%25289%2529.bmp" imageanchor="1" style="clear: right; display: inline !important; margin-bottom: 1em; margin-left: 1em; text-align: center;"><img border="0" height="50" src="http://1.bp.blogspot.com/_EpxBMiy6ppw/TNyQpCNwMhI/AAAAAAAAACA/8Z0HkZMr3zY/s400/Nueva+imagen+%25289%2529.bmp" width="400" /></a><br />
<span class="Apple-style-span" style="font-family: Courier; font-size: small;"><span class="Apple-style-span" style="font-size: 13px; line-height: 20px; white-space: pre;"><br />
</span></span>Unknownnoreply@blogger.com22tag:blogger.com,1999:blog-2971088540047153993.post-36909533227755586482010-10-13T21:01:00.000-07:002010-11-10T16:54:27.143-08:00Reporte #4 Lenguajes Funcionales (CORREGIDO)Los lenguajes que elegí fueron R y Haskell:<br />
<div><a href="http://upload.wikimedia.org/wikipedia/commons/6/69/Rlogo.jpg" imageanchor="1" style="clear: left; display: inline !important; float: left; margin-bottom: 1em; margin-right: 1em;"><br />
</a><a href="http://upload.wikimedia.org/wikipedia/commons/6/69/Rlogo.jpg" imageanchor="1" style="clear: left; display: inline !important; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Rlogo.jpg" border="0" src="http://upload.wikimedia.org/wikipedia/commons/6/69/Rlogo.jpg" /></a><br />
<br />
</div><div><br />
</div><div><br />
</div><div><br />
</div><div><br />
</div><div>Primero declare las matrices que utilizare "x" y "y" : </div><div>Hice que "x" tomo los valores de 1 a 15, y después di las dimensiones de la matriz que es 5x3</div><div>Después declare la matriz "y" con una secuencia de números a partir del 2 hasta el 30 de 2 en 2, y le di las dimensiones 5x3.</div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_EpxBMiy6ppw/TLZ7GuDoX7I/AAAAAAAAABM/kBW37GJz-es/s1600/progra1.bmp" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/_EpxBMiy6ppw/TLZ7GuDoX7I/AAAAAAAAABM/kBW37GJz-es/s1600/progra1.bmp" /></a></div><div class="separator" style="clear: both; text-align: left;">Después use la función sum( ) para sumar los elementos de cada matriz:</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><a href="http://4.bp.blogspot.com/_EpxBMiy6ppw/TLZ9oP80xSI/AAAAAAAAABc/clldUek4QyY/s1600/progra+5.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/_EpxBMiy6ppw/TLZ9oP80xSI/AAAAAAAAABc/clldUek4QyY/s1600/progra+5.bmp" /></a></div><div class="separator" style="clear: both; text-align: left;">También hice operaciones con las matrices:</div><div class="separator" style="clear: both; text-align: left;">Suma</div><div class="separator" style="clear: both; text-align: left;"><a href="http://2.bp.blogspot.com/_EpxBMiy6ppw/TLZ7I8sMWfI/AAAAAAAAABQ/bS4oVpDzFvY/s1600/progra+2.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/_EpxBMiy6ppw/TLZ7I8sMWfI/AAAAAAAAABQ/bS4oVpDzFvY/s1600/progra+2.bmp" /></a></div> Producto<br />
<div class="separator" style="clear: both; text-align: left;"><a href="http://3.bp.blogspot.com/_EpxBMiy6ppw/TLZ7KpKebkI/AAAAAAAAABU/lWCAQVS_Dh8/s1600/progra+3.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_EpxBMiy6ppw/TLZ7KpKebkI/AAAAAAAAABU/lWCAQVS_Dh8/s1600/progra+3.bmp" /></a></div> Y use las funciones para obtener el mínimo y el máximo valor de cada matriz:<br />
<br />
<div class="separator" style="clear: both; text-align: left;"><a href="http://2.bp.blogspot.com/_EpxBMiy6ppw/TLZ7MFNfzXI/AAAAAAAAABY/yJgMFcTNQrM/s1600/progra+4.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/_EpxBMiy6ppw/TLZ7MFNfzXI/AAAAAAAAABY/yJgMFcTNQrM/s1600/progra+4.bmp" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">*** Les dejo una tarjeta de referencia para R por si la necesitan:</div><div class="separator" style="clear: both; text-align: left;">http://cran.r-project.org/doc/contrib/Short-refcard.pdf</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><img src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBhQQEBUUEhQVFBUQFBcXEhUWFxQXFhUXFRYVFBgWFRoXHCcfGB4jHBYVHy8hIycqLCwtFR4xNTAqNSktLSkBCQoKDgwOGg8PGiokHyIsKiovLSksLCkpKjQsKSksKi0sKiwpKSwqKSwsKSksKSwsLCwsKSkpLCwpLCkpKSwsKf/AABEIAIwAlAMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAAAwQFBgcBAgj/xABHEAACAAQEAgcDBwgIBwAAAAABAgADBBEFEiExBkEHEyJRYXGBMpGhQlJigpKx0hQjU3KiwdHwFxgzQ1WU0+FUY3ODk6Oy/8QAGQEAAgMBAAAAAAAAAAAAAAAAAAQBAgMF/8QAJxEAAgIBAwIGAwEAAAAAAAAAAAECEQMEEjEhQRMiMlFhkYHB4XH/2gAMAwEAAhEDEQA/ANxggggAIIIIACCCOXgA7BFc4044k4VLlzJyzHE18ihAtwQpa5zEaaRU/wCsBRfoaj3SvxxeOOUlaRKTZp8I1lSJUtna9pasxsLmygsbDmdIzT+sDR/oKj/0/wCpHG6f6Mi3UVBB3/sf9SLeDP2ZO1l84b4lkYhIE6na6toQdGQ/Nccjt6EGJaPlvh3iz8hrWejZklMxCCYAewSSqTVVrMBe1wb8wRcxv3BXHEvEkcKpSZJy9avtL272KNzBynQ2I5iJyYXBX2JlFrqWaCOXjsYlAggggAIIIIACCCCAAggggAIIIbVtaklGmTGCqguSf518oAbrkWmTAoJJAAFyToB5xUcZ4/RLrIAYj5Z9n6o3P3ecU7ijjd6piq3WUD2U7/pP3nw2EVp6hm3MbRx+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mhLypb5Zb9RPfMthZsytY+kR39J+M/4ef8tU/ihmME16V9/00S+ChY5i3Xz2myqVpGfVkUTGTNzK9kZb920V+oq2M0sdDswObQjTS+qmNc/pPxn/AA8/5ap/FFW4x41nzyBWUUuVMYdhzKnSpthpuX7Q8wRGsU0+kV9/0r4aTuKX2Q1DxFawa7eftj8Y+PnE9JqQ4upBH8+6K9hvDlXiJtTymmiXqSFCqp7i5O/gNfCJMYLUUYInypiE2uWRgugtodjp4mCdLnn2OfqtPFLclT9lwSWaDNDBayPf5TFLRzdrHZeGeJ0vXSyl8uoIO+o12hxS08ycbS0dz3IrN9wiRxDhqdS07VFUpkylIGurlmNgFQcye8geMFotCOS7gupSPz1L35ObLqnmy/J+ESWH0CYnMVROSROsElBwzSprM3ZTMoPVkk/KB5WvvCtBW1VZM6rD5L5ubqAZi35l/Yk+mo+cd4lH4dlYE8qZWs86pNpsqmknLLBRrhp05hcjMNlHLnGrfvz2rn8o7ePG/VkSUvj9j+h42xPA2WTWSi0oaIJlypH/ACpy39xzW7hGrcJ8d0+Ii0osswLmaW4swFwCQRdWFyBcHmL2jIJs7F+ItFGSmJ5Xl0+h3LatOI8L+UadwD0aphd3M1ps5kKsbZUUFlYhF1O6rqSTpyjDIo7evq+P2bNKvkusEEELFAggggAIIIIACCCCADhihY70RU9biJq5zuUdVzyRoGZRluXvcLYDsgDXnraL8Y5EptdUSnQ3w/D5ciWsuUiy0QWVVACj0EOCIBHYggYzsEkObtJlMTuWlofvEeJeAU6+zTyR5SpY+4RIxyCyu1HlEAFgAPLSI/HuH5NdJMmoXPLLKxXMV1Q5hqNdxElBAWGuG4XKppYlyZaSkXZUAUfDc+O8R2L8G0tXPlz6iSs15KlUz3KAE5tU9ltb7jnE3BBfcDiJYWAsBoANgI9QQQAEEEEABBBBAB//2Q==" /> <span class="Apple-style-span" style="font-size: x-large;">Haskell</span></div><div><br />
</div><div>Programa que calcula la serie de Fibonacci:</div><div><br />
<span class="Apple-style-span" style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 15px; line-height: 19px;"></span><br />
<pre class="prettyprint" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(136, 136, 136); border-bottom-style: solid; border-bottom-width: 0px; border-color: initial; border-left-color: rgb(136, 136, 136); border-left-style: solid; border-left-width: 0px; border-right-color: rgb(136, 136, 136); border-right-style: solid; border-right-width: 0px; border-style: initial; border-top-color: rgb(136, 136, 136); border-top-style: solid; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 15px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">fib </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">::</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #660066; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Integer</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-></span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #660066; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Integer</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
fib </span><span class="lit" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #006666; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">0</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="lit" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #006666; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">1</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
fib </span><span class="lit" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #006666; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">1</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="lit" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #006666; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">1</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
fib n </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> fib </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">n</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span><span class="lit" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #006666; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">1</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">+</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> fib </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">n</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span><span class="lit" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #006666; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">2</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666600; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span></code></pre></div><div><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: small;"><span class="Apple-style-span" style="font-size: 13px; line-height: 14px;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: 'Courier New'; font-size: small;"><span class="Apple-style-span" style="font-size: 13px; line-height: 14px;"><br />
</span></span></div><div><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: small;"><span class="Apple-style-span" style="font-size: 13px; line-height: 14px;"><br />
</span></span><br />
<span lang="EN-US" style="color: black; font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">Bibliografía</span><br />
<span lang="EN-US" style="color: black; font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><a href="http://it.ciidit.uanl.mx/~sara/pres/lp/leng_s8.pdf">http://it.ciidit.uanl.mx/~sara/pres/lp/leng_s8.pdf</a></span><br />
<a href="http://cran.r-project.org/doc/contrib/Short-refcard.pdf">http://cran.r-project.org/doc/contrib/Short-refcard.pdf</a><br />
<a href="http://www.haskell.org/haskellwiki/Learn_Haskell_in_10_minutes">http://www.haskell.org/haskellwiki/Learn_Haskell_in_10_minutes</a><br />
<a href="http://en.wikibooks.org/wiki/R_Programming">http://en.wikibooks.org/wiki/R_Programming</a><br />
<a href="http://es.wikipedia.org/wiki/Haskell">http://es.wikipedia.org/wiki/Haskell</a><br />
<a href="http://es.efreedom.com/Question/1-1105765/Generacion-de-numeros-de-Fibonacci-en-Haskell">http://es.efreedom.com/Question/1-1105765/Generacion-de-numeros-de-Fibonacci-en-Haskell</a></div>Unknownnoreply@blogger.com17tag:blogger.com,1999:blog-2971088540047153993.post-5226186320998853952010-09-08T21:02:00.000-07:002010-11-10T17:26:16.052-08:00Presentacion #2Esta es la presentación del equipo del tema de ordenamiento por mezcla(Mergesort).<br />
<span class="Apple-style-span" style="font-size: x-large;"><a href="http://www.4shared.com/document/U0lF5o9O/mergesort.html">Mergesort</a><span class="Apple-style-span" style="font-size: medium;">(descargar)</span></span><br />
<br />
<br />
<div id="__ss_5160863" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a href="http://www.slideshare.net/rul05/mergesort" title="Mergesort">Mergesort</a></strong><object height="355" id="__sse5160863" width="425"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=mergesort-100908234022-phpapp02&stripped_title=mergesort&userName=rul05" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse5160863" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=mergesort-100908234022-phpapp02&stripped_title=mergesort&userName=rul05" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/rul05">rul05</a>.</div></div><br />
<br />
<a href="http://raulprogramando.blogspot.com/">Raúl Rodríguez</a><br />
<a href="http://jcesar9287.blogspot.com/">Julio García</a>Unknownnoreply@blogger.com9tag:blogger.com,1999:blog-2971088540047153993.post-50671199478245696792010-09-01T19:44:00.000-07:002010-11-10T18:27:32.779-08:00Reporte #3(CORREGIDO)<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Este es mi tercer reporte para la clase de lenguajes de programación, los lenguajes que elegí fueron Python, Perl y Tcl:</span><br />
<br />
<span class="Apple-style-span" style="font-size: x-large;">Python</span><br />
<br />
<div class="MsoNormal"></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Este es un programa que calcula la edad de una persona:</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="MsoNormal"><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_EpxBMiy6ppw/TNtDJsHatDI/AAAAAAAAABo/5yqz_Jf3Ak8/s1600/Nueva+imagen+%25283%2529.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/_EpxBMiy6ppw/TNtDJsHatDI/AAAAAAAAABo/5yqz_Jf3Ak8/s1600/Nueva+imagen+%25283%2529.bmp" /></a></div><br />
</div><br />
<span class="Apple-style-span" style="font-size: x-large;">Perl</span><br />
<br />
<br />
<div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;">#! /usr/bin/perl<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;"><br />
</span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;">use bigint;<o:p></o:p></span></div><div class="MsoNoSpacing"><br />
</div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;">my ($a, $b) = (0, 1);<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;">for (<span class="apple-style-span">$i=0; $i<n; $i++<="" span="">) <o:p></o:p></n;></span></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;">{<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;"> print "$a\n";<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;"> ($a, $b) = ($b, $a+$b);<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;">}<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;"><br />
</span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;"><b>Recursive </b><o:p></o:p></span></div><div class="MsoNoSpacing"><span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 16px;">sub fibo;</span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;">sub fibo {$_ [0] < 2 ? $_ [0] : fibo ($_ [0] - 1) + fibo ($_ [0] - 2)}<o:p></o:p></span></div><div class="MsoNoSpacing"><br />
</div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;"><b>Iterative </b><o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;">sub fibo<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;">{<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;"> my ($n, $a, $b) = (shift, 0, 1);<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;"> ($a, $b) = ($b, $a + $b) while $n-- > 0;<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;"> $a;<o:p></o:p></span></div><div class="MsoNoSpacing"><span style="font-family: Arial, sans-serif; font-size: 12pt;">}<o:p></o:p></span></div><br />
<br />
<span class="Apple-style-span" style="font-size: x-large;">Tcl/Tk</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Proc </span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"> </span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Factorial {x} {</span><br />
<div class="MsoNormal" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span"><span lang="EN-US"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">If {$x <= 1}<o:p></o:p></span></span></span></div><div class="MsoNormal" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span"><span lang="EN-US"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Return 11<o:p></o:p></span></span></span></div><div class="MsoNormal" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span"><span lang="EN-US"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">} else {<o:p></o:p></span></span></span></div><div class="MsoNormal" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span"><span lang="EN-US"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Return[ expr {$x *{Factorial [expr {$x – 1} ] } } ]<o:p></o:p></span></span></span></div><div class="MsoNormal" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span"><span lang="EN-US"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">}<o:p></o:p></span></span></span></div><div class="MsoNormal" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span"><span lang="EN-US"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">}</span></span></span></div><br />
<br />
<br />
Bibliografia<br />
<a href="http://es.wikipedia.org/wiki/Tcl">http://es.wikipedia.org/wiki/Tcl</a><br />
<a href="http://es.wikipedia.org/wiki/Python">http://es.wikipedia.org/wiki/Python</a><br />
<a href="http://es.wikipedia.org/wiki/Perl">http://es.wikipedia.org/wiki/Perl</a><br />
<a href="http://books.google.com.mx/books?id=0EB9OIFBnFgC&printsec=frontcover&dq=tcl&hl=es&ei=_vPaTN_GAcGs8AaZlZD4CQ&sa=X&oi=book_result&ct=result&resnum=1&ved=0CCoQ6AEwAA#v=onepage&q&f=false"><span lang="EN-US">http://books.google.com.mx/books?id=0EB9OIFBnFgC&printsec=frontcover&dq=tcl&hl=es&ei=_vPaTN_GAcGs8AaZlZD4CQ&sa=X&oi=book_result&ct=result&resnum=1&ved=0CCoQ6AEwAA#v=onepage&q&f=false</span></a>Unknownnoreply@blogger.com14tag:blogger.com,1999:blog-2971088540047153993.post-69522472621088104642010-08-18T21:24:00.000-07:002010-11-10T18:14:01.980-08:00Presentación Ensambladores<div id="__ss_5733166" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a href="http://www.slideshare.net/AlbertoHJ92/ensambladores-5733166" title="Ensambladores">Ensambladores</a></strong><object height="355" id="__sse5733166" width="425"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=ensambladores-101110201110-phpapp02&stripped_title=ensambladores-5733166&userName=AlbertoHJ92" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse5733166" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=ensambladores-101110201110-phpapp02&stripped_title=ensambladores-5733166&userName=AlbertoHJ92" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/AlbertoHJ92">AlbertoHJ92</a>.</div></div>Unknownnoreply@blogger.com9tag:blogger.com,1999:blog-2971088540047153993.post-46175637858051428952010-08-18T19:31:00.000-07:002010-08-18T21:25:59.151-07:00Segundo Reporte<div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font: normal normal normal 100%/normal Verdana, Geneva, Arial, Helvetica, sans-serif; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; text-align: left;"><b><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium; font-weight: normal;"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: 'Times New Roman';"><img alt="Dylan" src="http://www.opendylan.org/cms/images/dylan-8caae6.png" /></span></span></span></b></div><div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font: normal normal normal 100%/normal Verdana, Geneva, Arial, Helvetica, sans-serif; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; text-align: left;"><b><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px;"></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">Dylan</span></span></span></b><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;"> es una lengua del multi-paradigma para la cual incluye la ayuda funcional y orientado al objeto la programación, y es dinámico y reflexivo mientras que proporcionaba un modelo de programación diseñó apoyar la generación eficiente del código automático, incluyendo control de grano fino sobre comportamientos dinámicos y estáticos. Fue creado en los años 90 por iniciativa de Apple Computer.</span></span></div><div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font: normal normal normal 100%/normal Verdana, Geneva, Arial, Helvetica, sans-serif; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; text-align: left;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; line-height: 19px;"></span></span></span><br />
<span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; line-height: 19px;"></span><br />
<span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; line-height: 19px;"><div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">Dylan es, en esencia, una versión depurada y simplificada de </span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">CLOS</span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">, un sistema de programación </span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">orientado a objetos</span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;"> desarrollado en </span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">Common Lisp</span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">. En Dylan, la mayoría de las entidades (incluyendo los tipos de datos primitivos, métodos y clases) son objetos de “primera clase”. Los programas pueden ser escritos desde una forma fuertemente tipeada a una forma débilmente tipeada. Dylan soporta </span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">herencia múltiple</span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">, </span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">polimorfismo</span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">, palabras clave, macros, y muchas otras características avanzadas.</span></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; line-height: normal;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">En Dylan, todos los valores (números incluyendo, los caracteres, las funciones, y las clases) son objetos de primera clase. Dylan apoya herencia múltiple, polimorfismo, envío múltiple, discusiones de la palabra clave, el introspection del objeto, macros patrón-basadas de la extensión del sintaxis, y muchas otras características avanzadas. Los programas pueden expresar control de grano fino sobre el dinamismo, admitiendo los programas que ocupan una serie continua entre la programación dinámica y estática y el desarrollo evolutivo de soporte (que permiten prototyping rápido seguido por el refinamiento y la optimización incrementales).</span></span></span></div></span></div><div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font: normal normal normal 100%/normal Verdana, Geneva, Arial, Helvetica, sans-serif; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; text-align: left;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-size: medium;">La meta principal del diseño de Dylan es ser una lengua dinámica bien adaptada para desarrollar software comercial. Dylan procura tratar ediciones potenciales del funcionamiento introduciendo la flexibilidad “natural” de los límites al máximo de los sistemas del lisp, permitiendo que el recopilador entienda claramente las unidades compilable (es decir, bibliotecas).</span></span></div><div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font: normal normal normal 100%/normal Verdana, Geneva, Arial, Helvetica, sans-serif; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; text-align: left;"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: medium;"><a href="http://www.opendylan.org/books/drm/"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="color: red;">Manual Dylan</span></span></a><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="color: red;"> </span></span></span></div><div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font: normal normal normal 100%/normal Verdana, Geneva, Arial, Helvetica, sans-serif; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; text-align: left;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="color: red;"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: medium;"></span></span></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: medium;"><a href="http://www.opendylan.org/"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="color: red;">Compilador</span></span></a></span></div><div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font: normal normal normal 100%/normal Verdana, Geneva, Arial, Helvetica, sans-serif; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; text-align: left;"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="color: red;"><a href="http://www.opendylan.org/"></a></span></span></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: medium;"><a href="http://translate.googleusercontent.com/translate_c?hl=es&langpair=en|es&u=http://www.opendylan.org/fragments.phtml&rurl=translate.google.com.mx&twu=1&usg=ALkJrhju6WtwPGvpY03qTIlKUbiJe0t-yA"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="color: red;">Ejemplo</span></span></a></span></div><br />
<br />
<br />
<span class="Apple-style-span" style="font-size: x-large;">Bibliografia</span><br />
<a href="http://es.wikipedia.org/wiki/Dylan_(lenguaje_de_programaci%C3%B3n)"><span class="Apple-style-span" style="color: black;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">http://es.wikipedia.org/wiki/Dylan_(lenguaje_de_programación)</span></span></a><br />
<a href="http://www.worldlingo.com/ma/enwiki/es/Dylan_(programming_language)"><span class="Apple-style-span" style="color: black;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">http://www.worldlingo.com/ma/enwiki/es/Dylan_(programming_language)</span></span></a><br />
<a href="http://www.opendylan.org/learning.phtml"><span class="Apple-style-span" style="color: black;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">http://www.opendylan.org/learning.phtml</span></span></a>Unknownnoreply@blogger.com13tag:blogger.com,1999:blog-2971088540047153993.post-19260732705659618972010-08-09T17:44:00.000-07:002010-08-09T17:44:28.626-07:00Este es mi primer reporte, es un mapa conceptual sobre lo que entendí de los lenguajes de programación. En el explico lo que es un programa que es un conjunto de instrucciones que serán ejecutadas por una computadora. <div>Después, lo que es un sistema operativo que se encarga de gestionar procesos, la memoria de la computadora, archivos, de la seguridad del CPU,etc., y sobre las especificaciones que se deben de tomar a la hora de realizar un lenguaje de computadoras.</div><div><br />
<div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_EpxBMiy6ppw/TGCeVwlR1jI/AAAAAAAAAA4/K1bDULrYRH0/s1600/Nueva+imagen.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="311" src="http://3.bp.blogspot.com/_EpxBMiy6ppw/TGCeVwlR1jI/AAAAAAAAAA4/K1bDULrYRH0/s400/Nueva+imagen.bmp" width="400" /></a></div><br />
</div></div>Unknownnoreply@blogger.com15