3. OOP

parent 1f1271b4
...@@ -560,7 +560,7 @@ ...@@ -560,7 +560,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 117, "execution_count": 10,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -591,13 +591,22 @@ ...@@ -591,13 +591,22 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 118, "execution_count": 22,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CGarcia\n"
]
}
],
"source": [ "source": [
"miNota=Nota(\"Este es el contenido de la nota\",\"Investigacion\",\"CGarcia\",\"Titulo de la nota\")\n", "miNota=Nota(\"Este es el contenido de la nota\",\"Investigacion\",\"CGarcia\",\"Titulo de la nota\")\n",
"Editorial=Fuente(\"La Jornada\", \"http://jornada.unam.mx\")\n", "Editorial=Fuente(\"La Jornada\", \"http://jornada.unam.mx\")\n",
"miNota.source=Editorial" "miNota.source=Editorial\n",
"print(miNota.author)"
] ]
}, },
{ {
...@@ -624,7 +633,7 @@ ...@@ -624,7 +633,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 116, "execution_count": 37,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -634,34 +643,187 @@ ...@@ -634,34 +643,187 @@
" self.url=url\n", " self.url=url\n",
" \n", " \n",
" def __str__(self):\n", " def __str__(self):\n",
" return str(self.nombre)\n", " return str(\"Soy la fuente: \"+ self.nombre)\n",
" \n", " \n",
" " " #Funcion para probar adquirir una nota\n",
" def getNota(self,nota):\n",
" self.nota=nota"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Soy la fuente: El Universal\n",
"Titulo de la nota\t02-14-19\n",
"CGarcia\n",
"Sección: Investigacion\n",
"La Jornada\n",
"\n",
"Este es el contenido de la nota\n"
]
}
],
"source": [
"ElUniversal=Fuente(\"El Universal\",\"https://eluniversal.com.mx\")\n",
"print(ElUniversal)\n",
"ElUniversal.getNota(miNota)\n",
"print(ElUniversal.nota)"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 120, "execution_count": 69,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"#Este es el clasificador\n",
"#Topic solo es para reconocerlo\n",
"class Editor:\n", "class Editor:\n",
" def __init__(self, topic):\n", " def __init__(self, topic):\n",
" self.topic=topic\n", " self.topic=topic\n",
" \n",
" def clasificar(self):\n",
" '''\n",
" Función que permitirá clasificar por tematica una base de nota previo un modelo entrenado\n",
" '''\n",
" pass\n",
" \n",
" def PuntuarAutor(self):\n",
" '''\n",
" Función que permitirá obtener a los autores más relevantes de un tema en particular\n",
" ''' \n",
" #listAutores=[]\n",
" #dicAutores={}\n",
" #for nota in notas:\n",
" #listAutores.append(nota.author)\n",
" #for autor in listAutores:\n",
" #dicAutores.update({autor:listAutores.count(autor)}) \n",
" pass\n",
" \n",
" def PuntuarTitulo(self):\n",
" '''\n",
" Función que permitirá obtener los titulos más relevantes de un tema en particular\n",
" '''\n",
" #listTitulos=[]\n",
" #dicTitulos={}\n",
" #for nota in notas:\n",
" #listAutores.append(nota.title)\n",
" #for titulo in listTitulos:\n",
" #dicTitulos.update({titulo:listTitulos.count(autor)})\n",
" \n", " \n",
" def histogramaAutores(self):\n",
" '''\n",
" Generador de histograma (autor)\n",
" Requiere matplotlib\n",
" '''\n",
" plt.bar(list(dicAutores.keys()), dicAutores.values(), color='r')\n",
" plt.show()\n",
" pass\n",
" \n",
" def histogramaTitulos(self):\n",
" '''\n",
" Generador de histograma (titulo)\n",
" Requiere matplotlib\n",
" '''\n",
" plt.bar(list(dicti.keys()), dicti.values(), color='g')\n",
" plt.show()\n",
" pass\n",
" \n", " \n",
" \n", "\n",
" " "\n"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 122, "execution_count": 67,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{'cgarcia': 3, 'c garcia': 1, 'chernandez': 1}\n"
]
},
{
"data": {
"text/plain": [
"<BarContainer object of 3 artists>"
]
},
"execution_count": 67,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAD8CAYAAACMwORRAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvOIA7rQAAEI9JREFUeJzt3X+MZWV9x/H3R3ZFDIiVnVay7LpEqVabojIi1Nbiz6BR0YgWYlX8tdFo1ESbWDWKtrbRVk1kDbgRClirqChZEbVUsWB1kdmV34jZYC1LaFj56RYEF7/9454t18udvXdm7uzsPr5fyc2cc57nnvOd+8z5zLlnzj2TqkKS1JaHLHUBkqTJM9wlqUGGuyQ1yHCXpAYZ7pLUIMNdkhpkuEtSgwx3SWqQ4S5JDVq2VBtesWJFrVmzZqk2L0l7pU2bNv2iqqZG9VuycF+zZg0zMzNLtXlJ2isl+fk4/TwtI0kNMtwlqUGGuyQ1yHCXpAYZ7pLUoJHhnuRhSX6U5Iok1yT50JA++yY5J8mWJJcmWbMYxUqSxjPOkfu9wLOr6nDgycCxSY4a6PMG4PaqehzwSeCjky1TkjQXI8O9erZ3s8u7x+D/5jsOOKub/grwnCSZWJWSpDkZ65x7kn2SXA7cAlxYVZcOdFkJ3AhQVTuAO4GDJlmoJGl8Y31CtaruB56c5JHA15L8cVVdPdeNJVkLrAVYvXr1XJ/ev6L5P1e75j9Ml5owp6tlquoO4CLg2IGmm4BVAEmWAQcCtw55/vqqmq6q6ampkbdGkCTN0zhXy0x1R+wk2Q94HvCTgW4bgNd208cD363yEFCSlso4p2UOBs5Ksg+9XwZfqqrzk3wYmKmqDcDpwOeSb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p9X/+hqj7T37F77Qb3m19Xd/hM75fuzvza1f7Sv83+5wzzEOCOqnryYEMX/F8C3lRVN+9iHXsMz7nv2neBVyQ5CCDJo4CNwMu79v5P4h4I3NIF+7OY/eY+G+mdezy0b52DDuSB+/e8dki7HmzYWA36T+CVXfvz6b2dh97rfXsX7E+g9+5qmOuBg5M8rVvHAendS6lf/9idNM/vZW83zljs9G3g9V14kmRlkt+f4/bmur9cDLw0yX5JDqB3qmXnO7GfJXlFV0uSHN495wzgn6vqkjnWtmQ8ct+F6t1m4SPAfyS5n95bx3cC/5LkfcC36N3eGODzwNeTXEXvyomfzLLObd0f7L6a5CHALTzw9nKnk+m9Nbyd3o5y6GS/s/bMMlYnDXT7EPCFJK8Gfgj8D/BLeuP45iTX0QvwjQxRVfcl+UvglCT7AffQO+Lv9zF6p2XeD3xjIt/cXmaWsZit778l+SPgh92pkO3AX9E7yh7Xycxhf6mqzUnOAa6gt/9d1tf8KuDUbvyWA19Mcge9e2b9YZLXd/3eWL2rpPZYfkJ1jpI8HLinqirJCfT+uDr4z0u0B0qyL3B/9e6XdDRw6rC34FILPHKfuyOAdekdZtwBvH5Ef+05VgNf6t4x3Qe8aYnrkRaNR+6S1CD/oCpJDTLcJalBhrskNchwl6QGGe6S1CDDXZIa9H9I+Hzx6HnUGAAAAABJRU5ErkJggg==\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"'''\n",
"#Prueba de histograma\n",
"\n",
"import matplotlib.pyplot as plt\n",
"dicti={}\n",
"autores=[\"c garcia\",\"cgarcia\",\"cgarcia\",\"chernandez\"]\n",
"autores.count(\"cgarcia\")\n",
"autores.append(\"cgarcia\")\n",
"autores.count(\"cgarcia\")\n",
"\n",
"for autor in autores:\n",
" dicti.update({autor:autores.count(autor)})\n",
"\n",
"print(dicti)\n",
"\n",
"x=plt.bar(list(dicti.keys()), dicti.values(), color='r')\n",
"x\n",
"'''\n"
]
},
{
"cell_type": "code",
"execution_count": 66,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Soy la editorial: Consejo Editorial Mexicano y decido que se publica y que no\n"
]
}
],
"source": [ "source": [
"class Editorial:\n", "class Editorial:\n",
" pass" " def __init__(self,nombre):\n",
" self.nombre=nombre\n",
" \n",
" def __str__(self):\n",
" return str(\"Soy la editorial: \"+ self.nombre+\" y decido que se publica y que no\")\n",
" \n",
" def publicar(self):\n",
" '''\n",
" Funcion que publicará, de momento por autor con mayor frecuencia de aparición y/o por titulo del día con mayor frecuencia de aparicion\n",
" '''\n",
" pass\n",
"\n",
"editorial1=Editorial(\"Consejo Editorial Mexicano\")\n",
"print(editorial1)"
] ]
} }
], ],
......
...@@ -462,7 +462,7 @@ ...@@ -462,7 +462,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 201, "execution_count": 4,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -470,9 +470,9 @@ ...@@ -470,9 +470,9 @@
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"Escriba su texto: \n", "Escriba su texto: \n",
"hola mundo infeliz hola\n", "hola mundo hola\n",
"['hola', 'mundo', 'infeliz', 'hola']\n", "['hola', 'mundo', 'hola']\n",
"{'hola': 2, 'mundo': 1, 'infeliz': 1}\n" "{'hola': 2, 'mundo': 1}\n"
] ]
} }
], ],
...@@ -570,7 +570,7 @@ ...@@ -570,7 +570,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 318, "execution_count": 327,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -578,65 +578,1625 @@ ...@@ -578,65 +578,1625 @@
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"Ingresa el tamaño del cuadrado: \n", "Ingresa el tamaño del cuadrado: \n",
"3\n", "11\n",
"[[0. 0. 0.]\n", "[[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 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1. 0.]\n", "[[0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0.]\n", " [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 2.]]\n", " [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 9. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 8. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [7. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 5. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 4. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 3. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 2. 0. 0. 0. 0.]]\n",
"-----\n", "-----\n",
"soy j:0\n", "soy j:3\n",
"[[ 0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 5. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 0. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 0. 0. 0. 0.]]\n",
"-----\n",
"soy j:4\n",
"1.0\n", "1.0\n",
"La celda esta ocupada, regresa e inserta abajo\n", "La celda esta ocupada, regresa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. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:2\n",
"23.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 0. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:2\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:3\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:4\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:5\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:6\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:7\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:8\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:9\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:10\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:0\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:1\n",
"34.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:1\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:2\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:3\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:4\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:5\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:6\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:7\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:8\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:9\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:10\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:0\n",
"45.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:0\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:1\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:2\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"56.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:0\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:1\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:2\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"67.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:0\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:1\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:2\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"78.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:0\n", "soy j:0\n",
"[[0. 1. 0.]\n", "[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [3. 0. 0.]\n", " [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 0. 2.]]\n", " [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:1\n", "soy j:1\n",
"[[0. 1. 0.]\n", "[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 0.]\n", " [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 0. 2.]]\n", " [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:2\n", "soy j:2\n",
"4.0\n", "[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 98. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"89.0\n",
"La celda esta ocupada, regresa e inserta abajo\n", "La celda esta ocupada, regresa e inserta abajo\n",
"[[0. 1. 6.]\n", "[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 0.]\n", " [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 0. 2.]]\n", " [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 99. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 98. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 0. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:0\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:1\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:2\n", "soy j:2\n",
"[[0. 1. 6.]\n", "[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 7.]\n", " [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 0. 2.]]\n", " [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"100.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:0\n", "soy j:0\n",
"[[8. 1. 6.]\n", "[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 7.]\n", " [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 0. 2.]]\n", " [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:1\n", "soy j:1\n",
"7.0\n", "[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:2\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 118. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 119. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 118. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[ 68. 81. 94. 107. 120. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 119. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 118. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"111.0\n",
"La celda esta ocupada, regresa e inserta abajo\n", "La celda esta ocupada, regresa e inserta abajo\n",
"[[8. 1. 6.]\n", "[[ 68. 81. 94. 107. 120. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 7.]\n", " [ 80. 93. 106. 119. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 9. 2.]]\n", " [ 92. 105. 118. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 121. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"[[8. 1. 6.]\n", "[[ 68. 81. 94. 107. 120. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 7.]\n", " [ 80. 93. 106. 119. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 9. 2.]]\n" " [ 92. 105. 118. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 121. 2. 15. 28. 41. 54.]]\n"
] ]
} }
], ],
......
...@@ -4,8 +4,955 @@ ...@@ -4,8 +4,955 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"# 2.SciPy\n", "![scipy](https://cdn-images-1.medium.com/max/1600/1*Y2v3PrF1rUQRUHwOcXJznA.png)\n",
"## 2.1 NumPy" "\n",
"# 5.SciPy\n",
"SciPy es un ecosistema para computo cientifico en python, esta constriuido sobre los arreglos de NumPy. Scipy incluye herramientas como Matplotlib, pandas , SymPy y scikit-learn. \n",
"\n",
"## 5.1 NumPy\n",
"NumPy es la base para todos los paquetes de computo científico en python, provee soporte para arreglos multidimensionales y matrices, junto con una amplia coleccion de funciones matematicas de alto nivel para operar con estos arreglos.\n",
"\n",
"### 5.1.1 numpy.array \n",
"El tipo de dato mas importante de numpy es **numpy.array** sus atibutos mas importantes son:\n",
"* numpy.array.**ndim**: -numero de dimensiones del arreglo.\n",
"* numpy.array.**shape**: Un tumpla indicando el tamaño del arreglo en cada dimension.\n",
"* numpy.array.**size**: El numero total elementos en el arreglo.\n",
"* numpy.array.**dtype**: El tipo de elemenos en el arreglo e.g. numpy.int32, numpy.int16, and numpy.float64.\n",
"* numpy.array.**itemsize**: el tamaño en bytes de cada elemento del arrglo.\n",
"* numpy.array.**data**: El bloque de memoria que contiene los datos del arreglo.\n"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[ 0 1 2 3 4]\n",
" [ 5 6 7 8 9]\n",
" [10 11 12 13 14]]\n",
"(3, 5)\n",
"2\n",
"int64\n"
]
},
{
"data": {
"text/plain": [
"array([[ 0, 1, 2, 3, 4],\n",
" [ 5, 6, 7, 8, 9],\n",
" [10, 11, 12, 13, 14]], dtype=int16)"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import numpy as np\n",
"a = np.array([[ 0, 1, 2, 3, 4],\n",
" [ 5, 6, 7, 8, 9],\n",
" [10, 11, 12, 13, 14]])\n",
"print(a)\n",
"print(a.shape)\n",
"print(a.ndim)\n",
"print(a.dtype)\n",
"\n",
"b = np.array([[ 0, 1, 2, 3, 4],\n",
" [ 5, 6, 7, 8, 9],\n",
" [10, 11, 12, 13, 14]], dtype=np.int16)\n",
"b"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[1.+0.j 2.+0.j]\n",
" [3.+0.j 4.+0.j]]\n",
"2\n",
"(2, 2)\n"
]
}
],
"source": [
"c = np.array( [ [1,2], [3,4] ], dtype=complex )\n",
"print(c)\n",
"print(c.ndim)\n",
"print(c.shape)"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[[0., 0., 0.],\n",
" [0., 0., 0.]],\n",
"\n",
" [[0., 0., 0.],\n",
" [0., 0., 0.]]])"
]
},
"execution_count": 43,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"zero=np.zeros( (2,2,3) )\n",
"zero.ndim\n",
"zero"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1., 1., 1., 1.],\n",
" [1., 1., 1., 1.],\n",
" [1., 1., 1., 1.]])"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.ones( (3,4)) "
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1., 1., 1., 1.],\n",
" [1., 1., 1., 1.],\n",
" [1., 1., 1., 1.]])"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.empty( (3,4) ) "
]
},
{
"cell_type": "code",
"execution_count": 39,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1., 0., 0., 0., 0.],\n",
" [0., 1., 0., 0., 0.],\n",
" [0., 0., 1., 0., 0.],\n",
" [0., 0., 0., 1., 0.],\n",
" [0., 0., 0., 0., 1.]])"
]
},
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.eye(5)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Operaciones Basicas"
]
},
{
"cell_type": "code",
"execution_count": 58,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0, 1, 2, 3])"
]
},
"execution_count": 58,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a = np.array([20,30,40,50] )\n",
"b = np.arange( 4 )\n",
"b"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[20 31 42 53]\n",
"[20 29 38 47]\n"
]
}
],
"source": [
"#Suma\n",
"print(a+b)\n",
"# Resta\n",
"print(a-b)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 40, 60, 80, 100])"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Multiplicacion Por escalar\n",
"a*2"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0, 1, 4, 9])"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Potencia\n",
"b**2"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ True, True, True, False])"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#Operadores Boleanos\n",
"a<50"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 0, 30, 80, 150])"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#Multiplicacion por elemento\n",
"a*b"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[**Producto punto**](https://en.wikipedia.org/wiki/Dot_product) y [**Multiplicacion Matricial**](https://en.wikipedia.org/wiki/Matrix_multiplication)"
]
},
{
"cell_type": "code",
"execution_count": 70,
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"True\n",
"260\n"
]
}
],
"source": [
"print(a@b == a.dot(b))\n",
"print(a@b)"
]
},
{
"cell_type": "code",
"execution_count": 172,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 0.33333333, -0.16666667],\n",
" [-0.33333333, 0.66666667]])"
]
},
"execution_count": 172,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a = np.array([[1, 0],\n",
" [0, 1]])\n",
"\n",
"b = np.array([[4, 1],\n",
" [2, 2,]])\n",
"\n",
"np.linalg.inv(b)"
]
},
{
"cell_type": "code",
"execution_count": 130,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[5 1]\n",
" [2 3]]\n",
"[[1 0]\n",
" [0 1]]\n",
"--------\n",
"[[4 1]\n",
" [2 2]]\n"
]
},
{
"data": {
"text/plain": [
"array([[4, 1],\n",
" [2, 2]])"
]
},
"execution_count": 130,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"print(a+b)\n",
"print(a)\n",
"print(\"--------\")\n",
"print(b)\n",
"np.matmul(a, b) == a.dot(b)\n",
"a.dot(b)"
]
},
{
"cell_type": "code",
"execution_count": 126,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[5 8 7]\n",
"---------\n",
"[[[9 5 3]\n",
" [5 8 7]]\n",
"\n",
" [[1 2 3]\n",
" [4 5 7]]]\n"
]
}
],
"source": [
"#3 Dimensiones ejemplo\n",
"rgb1=np.array([[[9,5,3],[5,8,7]],[[1,2,3],[4,5,7]]])\n",
"print(rgb1[0][1])\n",
"print(\"---------\")\n",
"print(rgb1)"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"66"
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"c= np.arange(12).reshape(3,4)\n",
"c.sum()"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([12, 15, 18, 21])"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"c.sum(axis=0) # Suma por Columna"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 6, 22, 38])"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"c.sum(axis=1) #Suma por Fila"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Elementos, filas, columnas y subarreglos."
]
},
{
"cell_type": "code",
"execution_count": 139,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 0, 1, 2, 3],\n",
" [10, 11, 12, 13],\n",
" [20, 21, 22, 23],\n",
" [30, 31, 32, 33],\n",
" [40, 41, 42, 43]])"
]
},
"execution_count": 139,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"def f(x,y):\n",
" return 10*x+y\n",
"\n",
"b = np.fromfunction(f,(5,4),dtype=int)\n",
"b"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"3"
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"b[0,3]"
]
},
{
"cell_type": "code",
"execution_count": 142,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[11 12]\n",
"[10 11 12 13]\n"
]
}
],
"source": [
"print(b[1,1:3])\n",
"print(b[1,:])"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 1, 11, 21, 31, 41])"
]
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"b[:,1]"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 1, 2],\n",
" [11, 12]])"
]
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"b[:2,1:3]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Iterando elementos"
]
},
{
"cell_type": "code",
"execution_count": 146,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0 1 2 3]\n",
"[10 11 12 13]\n",
"[20 21 22 23]\n",
"[30 31 32 33]\n",
"[40 41 42 43]\n"
]
}
],
"source": [
"for row in b:\n",
" print(row)"
]
},
{
"cell_type": "code",
"execution_count": 144,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0\n",
"1\n",
"2\n",
"3\n",
"10\n",
"11\n",
"12\n",
"13\n",
"20\n",
"21\n",
"22\n",
"23\n",
"30\n",
"31\n",
"32\n",
"33\n",
"40\n",
"41\n",
"42\n",
"43\n"
]
}
],
"source": [
"for element in b.flat:\n",
" print(element)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Cambio de forma"
]
},
{
"cell_type": "code",
"execution_count": 148,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[0., 8., 2., 0.],\n",
" [6., 5., 6., 3.],\n",
" [2., 0., 7., 3.]])"
]
},
"execution_count": 148,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a = np.floor(10*np.random.random((3,4)))\n",
"a"
]
},
{
"cell_type": "code",
"execution_count": 149,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(3, 4)"
]
},
"execution_count": 149,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.shape"
]
},
{
"cell_type": "code",
"execution_count": 150,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[0., 8.],\n",
" [2., 0.],\n",
" [6., 5.],\n",
" [6., 3.],\n",
" [2., 0.],\n",
" [7., 3.]])"
]
},
"execution_count": 150,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.reshape(6,2)"
]
},
{
"cell_type": "code",
"execution_count": 151,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[0., 6., 2.],\n",
" [8., 5., 0.],\n",
" [2., 6., 7.],\n",
" [0., 3., 3.]])"
]
},
"execution_count": 151,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.T"
]
},
{
"cell_type": "code",
"execution_count": 152,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ True, True, True],\n",
" [ True, True, True],\n",
" [ True, True, True],\n",
" [ True, True, True]])"
]
},
"execution_count": 152,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.transpose()==a.T"
]
},
{
"cell_type": "code",
"execution_count": 153,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(4, 3)"
]
},
"execution_count": 153,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.T.shape"
]
},
{
"cell_type": "code",
"execution_count": 159,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[0., 8., 2., 0.],\n",
" [6., 5., 6., 3.],\n",
" [2., 0., 7., 3.]])"
]
},
"execution_count": 159,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# La dimension con -1 se calcula automaticamente\n",
"a.reshape(3,-1)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 5.2 Ejercicos\n",
"\n",
"### 5.2.1 Sin utilizar numpy escribe una funcion para obten el producto punto de dos vectores."
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [],
"source": [
"#Para cualquier N\n",
"a = [2, 5.6, 9, 8, 10]\n",
"b = [1, 3, 2.4, 2, 11]"
]
},
{
"cell_type": "code",
"execution_count": 75,
"metadata": {},
"outputs": [],
"source": [
"#Tarea, generar el producto punto\n",
"def prod_punto(v1,v2):\n",
" '''\n",
" Soy un docstring\n",
" '''\n",
" pass\n",
" #return prod_punto"
]
},
{
"cell_type": "code",
"execution_count": 170,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[1, 2, 3], [4, 5, 6]]\n"
]
},
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 170,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#Matriz sin numpy para la tarea\n",
"aaa=[[1,2,3],[4,5,6]]\n",
"print(aaa)\n",
"aaa[0][1]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 5.2.2 Sin utilizar numpy escribe una funcion que obtenga la multiplicacion de dos matrices.\n"
]
},
{
"cell_type": "code",
"execution_count": 165,
"metadata": {},
"outputs": [],
"source": [
"A = [[1,2,3],\n",
" [4,5,6]]\n",
"B = [[7,8],[9,10],[11,12]]"
]
},
{
"cell_type": "code",
"execution_count": 162,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[1, 2, 3], [4, 5, 6]]\n",
"[[7, 8], [9, 10], [11, 12]]\n"
]
}
],
"source": [
"print(A)\n",
"print(B)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 5.2.3 Utiliza numpy para probar que las dos funciones anteriores dan el resultado correcto."
] ]
}, },
{ {
...@@ -19,7 +966,408 @@ ...@@ -19,7 +966,408 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## 2.2 Pandas" "### 5.2.4 Utilizando solo lo visto hasta el momento de numpy escribe una funcion que encuentre la inversa de una matriz por el metodo de Gauss-Jordan.\n",
"[Wikipedia](https://en.wikipedia.org/wiki/Gaussian_elimination): En matemáticas, la eliminación de Gauss Jordan, llamada así en honor de Carl Friedrich Gauss y Wilhelm Jordan es un algoritmo del álgebra lineal que se usa para determinar las soluciones de un sistema de ecuaciones lineales, para encontrar matrices e inversas. Un sistema de ecuaciones se resuelve por el método de Gauss cuando se obtienen sus soluciones mediante la reducción del sistema dado a otro equivalente en el que cada ecuación tiene una incógnita menos que la anterior. El método de Gauss transforma la matriz de coeficientes en una matriz triangular superior. El método de Gauss-Jordan continúa el proceso de transformación hasta obtener una matriz diagonal"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 5.2.5 Utilizando la funcion anterior escribe otra que obtenga la pseduo-inversa de una matriz."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 5.3 Pandas\n",
"En python, pandas es una biblioteca de software escrita como extensión de NumPy para manipulación y análisis de datos. En particular, ofrece estructuras de datos y operaciones para manipular tablas numéricas y series temporales.\n",
"and expressive data structures designed to make working with “relational” or “labeled” data both easy and intuitive. Su objetivo es ser un bloque de construccion fundamental para realizar analisis de datos en el mundo real.\n",
"El nombre de la biblioteca deriva del término \"datos de panel\" (PANel DAta), término de econometría que designa datos que combinan una dimensión temporal con otra dimensión transversal.\n",
"\n",
"Pandas tiene dos typos de datos principales, **Series** (1D) y **DataFrame** (2D), *Dataframe* es un contenedr para *Series* y *Series* es un contenedor de escalares. \n",
"\n",
"### 5.3.1 Series\n",
"Series es un arreglo unidimensional etiquetado capaz de contener cualquier tipo de dato (Enteros, cadenas, punto flotante, objetos, etc), El eje de etiquetas es llamado indice (**index**).\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 41,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 51,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a 0.994272\n",
"b 0.530519\n",
"c 1.162452\n",
"d -0.981436\n",
"e -1.283798\n",
"dtype: float64"
]
},
"execution_count": 51,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s = pd.Series(np.random.randn(5), index=['a', 'b', 'c', 'd', 'e'])\n",
"s"
]
},
{
"cell_type": "code",
"execution_count": 46,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 2.042498\n",
"1 -0.964070\n",
"2 -0.687132\n",
"3 0.623300\n",
"4 1.366322\n",
"dtype: float64"
]
},
"execution_count": 46,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pd.Series(np.random.randn(5))"
]
},
{
"cell_type": "code",
"execution_count": 47,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a 0\n",
"b 1\n",
"c 2\n",
"dtype: int64"
]
},
"execution_count": 47,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"d = {'b': 1, 'a': 0, 'c': 2}\n",
"pd.Series(d)"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"b 1.0\n",
"c 2.0\n",
"d NaN\n",
"a 0.0\n",
"dtype: float64"
]
},
"execution_count": 48,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"d = {'a': 0., 'b': 1., 'c': 2.}\n",
"pd.Series(d, index=['b', 'c', 'd', 'a'])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Las Series son compatibles con *numpy.array* y *dict*"
]
},
{
"cell_type": "code",
"execution_count": 53,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.9942721192063438"
]
},
"execution_count": 53,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[0]"
]
},
{
"cell_type": "code",
"execution_count": 54,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a 0.994272\n",
"b 0.530519\n",
"c 1.162452\n",
"dtype: float64"
]
},
"execution_count": 54,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[:3]"
]
},
{
"cell_type": "code",
"execution_count": 55,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a 0.994272\n",
"b 0.530519\n",
"c 1.162452\n",
"dtype: float64"
]
},
"execution_count": 55,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[s>s.mean()]"
]
},
{
"cell_type": "code",
"execution_count": 56,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a 1.988544\n",
"b 1.061037\n",
"c 2.324904\n",
"d -1.962872\n",
"e -2.567597\n",
"dtype: float64"
]
},
"execution_count": 56,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s*2"
]
},
{
"cell_type": "code",
"execution_count": 57,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a True\n",
"b False\n",
"c True\n",
"d False\n",
"e False\n",
"dtype: bool"
]
},
"execution_count": 57,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s>s.median()"
]
},
{
"cell_type": "code",
"execution_count": 58,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.9942721192063438"
]
},
"execution_count": 58,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[\"a\"]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Alieneacion Automatica"
]
},
{
"cell_type": "code",
"execution_count": 59,
"metadata": {},
"outputs": [],
"source": [
"a = np.array(range(10))\n",
"s = pd.Series(a)"
]
},
{
"cell_type": "code",
"execution_count": 60,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"
]
},
"execution_count": 60,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a"
]
},
{
"cell_type": "code",
"execution_count": 62,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 0\n",
"1 1\n",
"2 2\n",
"3 3\n",
"4 4\n",
"5 5\n",
"6 6\n",
"7 7\n",
"8 8\n",
"9 9\n",
"dtype: int64"
]
},
"execution_count": 62,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s"
]
},
{
"cell_type": "code",
"execution_count": 75,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 4, 6, 8, 10, 12, 14])"
]
},
"execution_count": 75,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(a[:6]+a[4:])"
]
},
{
"cell_type": "code",
"execution_count": 76,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 NaN\n",
"1 NaN\n",
"2 NaN\n",
"3 NaN\n",
"4 8.0\n",
"5 10.0\n",
"6 NaN\n",
"7 NaN\n",
"8 NaN\n",
"9 NaN\n",
"dtype: float64"
]
},
"execution_count": 76,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(s[:6]+s[4:])"
] ]
}, },
{ {
...@@ -46,7 +1394,7 @@ ...@@ -46,7 +1394,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.6.8rc1" "version": "3.5.2"
} }
}, },
"nbformat": 4, "nbformat": 4,
......
...@@ -1431,7 +1431,7 @@ ...@@ -1431,7 +1431,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 37, "execution_count": 38,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -1450,7 +1450,7 @@ ...@@ -1450,7 +1450,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 31, "execution_count": 39,
"metadata": { "metadata": {
"scrolled": true "scrolled": true
}, },
...@@ -1485,6 +1485,7 @@ ...@@ -1485,6 +1485,7 @@
" <dl><dt><a name=\"-ejercicio4\"><strong>ejercicio4</strong></a>(minimo, maximo)</dt><dd><tt>Ejercicio&nbsp;4:&nbsp;Devuelve&nbsp;una&nbsp;lista&nbsp;de&nbsp;numeros&nbsp;enteros&nbsp;que&nbsp;tienen&nbsp;la&nbsp;característica&nbsp;de&nbsp;ser&nbsp;palíndromos&nbsp;y&nbsp;nones.&nbsp;Recibe&nbsp;como&nbsp;parámetro&nbsp;un&nbsp;valor&nbsp;único&nbsp;mínimo&nbsp;y&nbsp;otro&nbsp;máximo.</tt></dd></dl>\n", " <dl><dt><a name=\"-ejercicio4\"><strong>ejercicio4</strong></a>(minimo, maximo)</dt><dd><tt>Ejercicio&nbsp;4:&nbsp;Devuelve&nbsp;una&nbsp;lista&nbsp;de&nbsp;numeros&nbsp;enteros&nbsp;que&nbsp;tienen&nbsp;la&nbsp;característica&nbsp;de&nbsp;ser&nbsp;palíndromos&nbsp;y&nbsp;nones.&nbsp;Recibe&nbsp;como&nbsp;parámetro&nbsp;un&nbsp;valor&nbsp;único&nbsp;mínimo&nbsp;y&nbsp;otro&nbsp;máximo.</tt></dd></dl>\n",
" <dl><dt><a name=\"-ejercicio5\"><strong>ejercicio5</strong></a>(intentos<font color=\"#909090\">=2</font>)</dt><dd><tt>Ejercicio&nbsp;5:&nbsp;Programa&nbsp;que&nbsp;simula&nbsp;el&nbsp;juego&nbsp;del&nbsp;\"Ahorcado\".&nbsp;Tiene&nbsp;interacción&nbsp;con&nbsp;el&nbsp;usuario&nbsp;(máximo&nbsp;3)&nbsp;con&nbsp;ingresar&nbsp;la&nbsp;palabra&nbsp;y&nbsp;dos&nbsp;posibles&nbsp;soluciones&nbsp;(perder)&nbsp;o&nbsp;ganar.</tt></dd></dl>\n", " <dl><dt><a name=\"-ejercicio5\"><strong>ejercicio5</strong></a>(intentos<font color=\"#909090\">=2</font>)</dt><dd><tt>Ejercicio&nbsp;5:&nbsp;Programa&nbsp;que&nbsp;simula&nbsp;el&nbsp;juego&nbsp;del&nbsp;\"Ahorcado\".&nbsp;Tiene&nbsp;interacción&nbsp;con&nbsp;el&nbsp;usuario&nbsp;(máximo&nbsp;3)&nbsp;con&nbsp;ingresar&nbsp;la&nbsp;palabra&nbsp;y&nbsp;dos&nbsp;posibles&nbsp;soluciones&nbsp;(perder)&nbsp;o&nbsp;ganar.</tt></dd></dl>\n",
" <dl><dt><a name=\"-ejercicio6\"><strong>ejercicio6</strong></a>()</dt><dd><tt>Ejercicio&nbsp;6:&nbsp;Devuelve&nbsp;el&nbsp;conteo&nbsp;de&nbsp;número&nbsp;de&nbsp;palabras&nbsp;de&nbsp;un&nbsp;texto&nbsp;ingresado&nbsp;por&nbsp;el&nbsp;usuario.&nbsp;No&nbsp;recibe&nbsp;ningún&nbsp;parámetro&nbsp;ya&nbsp;que&nbsp;internamente&nbsp;se&nbsp;pide&nbsp;el&nbsp;texto&nbsp;para&nbsp;procesar.</tt></dd></dl>\n", " <dl><dt><a name=\"-ejercicio6\"><strong>ejercicio6</strong></a>()</dt><dd><tt>Ejercicio&nbsp;6:&nbsp;Devuelve&nbsp;el&nbsp;conteo&nbsp;de&nbsp;número&nbsp;de&nbsp;palabras&nbsp;de&nbsp;un&nbsp;texto&nbsp;ingresado&nbsp;por&nbsp;el&nbsp;usuario.&nbsp;No&nbsp;recibe&nbsp;ningún&nbsp;parámetro&nbsp;ya&nbsp;que&nbsp;internamente&nbsp;se&nbsp;pide&nbsp;el&nbsp;texto&nbsp;para&nbsp;procesar.</tt></dd></dl>\n",
" <dl><dt><a name=\"-ejercicio8\"><strong>ejercicio8</strong></a>()</dt><dd><tt>Ejercicio&nbsp;8:&nbsp;Devuelve&nbsp;cuadrados&nbsp;mágicos&nbsp;de&nbsp;tamaño&nbsp;definido&nbsp;por&nbsp;el&nbsp;usuario.&nbsp;No&nbsp;recibe&nbsp;ningún&nbsp;parámetro&nbsp;ya&nbsp;que&nbsp;internamente&nbsp;se&nbsp;pide&nbsp;el&nbsp;tamaño&nbsp;de&nbsp;la&nbsp;matriz.&nbsp;Ocupa&nbsp;la&nbsp;biblioteca&nbsp;Numpy.&nbsp;No&nbsp;está&nbsp;habilitado&nbsp;para&nbsp;matrices&nbsp;pares.</tt></dd></dl>\n",
"</td></tr></table>\n", "</td></tr></table>\n",
"</body></html>" "</body></html>"
], ],
...@@ -1492,7 +1493,7 @@ ...@@ -1492,7 +1493,7 @@
"<IPython.core.display.HTML object>" "<IPython.core.display.HTML object>"
] ]
}, },
"execution_count": 31, "execution_count": 39,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
......
...@@ -560,7 +560,7 @@ ...@@ -560,7 +560,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 117, "execution_count": 10,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -591,13 +591,22 @@ ...@@ -591,13 +591,22 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 118, "execution_count": 22,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CGarcia\n"
]
}
],
"source": [ "source": [
"miNota=Nota(\"Este es el contenido de la nota\",\"Investigacion\",\"CGarcia\",\"Titulo de la nota\")\n", "miNota=Nota(\"Este es el contenido de la nota\",\"Investigacion\",\"CGarcia\",\"Titulo de la nota\")\n",
"Editorial=Fuente(\"La Jornada\", \"http://jornada.unam.mx\")\n", "Editorial=Fuente(\"La Jornada\", \"http://jornada.unam.mx\")\n",
"miNota.source=Editorial" "miNota.source=Editorial\n",
"print(miNota.author)"
] ]
}, },
{ {
...@@ -624,7 +633,7 @@ ...@@ -624,7 +633,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 116, "execution_count": 37,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -634,34 +643,187 @@ ...@@ -634,34 +643,187 @@
" self.url=url\n", " self.url=url\n",
" \n", " \n",
" def __str__(self):\n", " def __str__(self):\n",
" return str(self.nombre)\n", " return str(\"Soy la fuente: \"+ self.nombre)\n",
" \n", " \n",
" " " #Funcion para probar adquirir una nota\n",
" def getNota(self,nota):\n",
" self.nota=nota"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Soy la fuente: El Universal\n",
"Titulo de la nota\t02-14-19\n",
"CGarcia\n",
"Sección: Investigacion\n",
"La Jornada\n",
"\n",
"Este es el contenido de la nota\n"
]
}
],
"source": [
"ElUniversal=Fuente(\"El Universal\",\"https://eluniversal.com.mx\")\n",
"print(ElUniversal)\n",
"ElUniversal.getNota(miNota)\n",
"print(ElUniversal.nota)"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 120, "execution_count": 69,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"#Este es el clasificador\n",
"#Topic solo es para reconocerlo\n",
"class Editor:\n", "class Editor:\n",
" def __init__(self, topic):\n", " def __init__(self, topic):\n",
" self.topic=topic\n", " self.topic=topic\n",
" \n",
" def clasificar(self):\n",
" '''\n",
" Función que permitirá clasificar por tematica una base de nota previo un modelo entrenado\n",
" '''\n",
" pass\n",
" \n",
" def PuntuarAutor(self):\n",
" '''\n",
" Función que permitirá obtener a los autores más relevantes de un tema en particular\n",
" ''' \n",
" #listAutores=[]\n",
" #dicAutores={}\n",
" #for nota in notas:\n",
" #listAutores.append(nota.author)\n",
" #for autor in listAutores:\n",
" #dicAutores.update({autor:listAutores.count(autor)}) \n",
" pass\n",
" \n",
" def PuntuarTitulo(self):\n",
" '''\n",
" Función que permitirá obtener los titulos más relevantes de un tema en particular\n",
" '''\n",
" #listTitulos=[]\n",
" #dicTitulos={}\n",
" #for nota in notas:\n",
" #listAutores.append(nota.title)\n",
" #for titulo in listTitulos:\n",
" #dicTitulos.update({titulo:listTitulos.count(autor)})\n",
" \n", " \n",
" def histogramaAutores(self):\n",
" '''\n",
" Generador de histograma (autor)\n",
" Requiere matplotlib\n",
" '''\n",
" plt.bar(list(dicAutores.keys()), dicAutores.values(), color='r')\n",
" plt.show()\n",
" pass\n",
" \n",
" def histogramaTitulos(self):\n",
" '''\n",
" Generador de histograma (titulo)\n",
" Requiere matplotlib\n",
" '''\n",
" plt.bar(list(dicti.keys()), dicti.values(), color='g')\n",
" plt.show()\n",
" pass\n",
" \n", " \n",
" \n", "\n",
" " "\n"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 122, "execution_count": 67,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{'cgarcia': 3, 'c garcia': 1, 'chernandez': 1}\n"
]
},
{
"data": {
"text/plain": [
"<BarContainer object of 3 artists>"
]
},
"execution_count": 67,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAD8CAYAAACMwORRAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvOIA7rQAAEI9JREFUeJzt3X+MZWV9x/H3R3ZFDIiVnVay7LpEqVabojIi1Nbiz6BR0YgWYlX8tdFo1ESbWDWKtrbRVk1kDbgRClirqChZEbVUsWB1kdmV34jZYC1LaFj56RYEF7/9454t18udvXdm7uzsPr5fyc2cc57nnvOd+8z5zLlnzj2TqkKS1JaHLHUBkqTJM9wlqUGGuyQ1yHCXpAYZ7pLUIMNdkhpkuEtSgwx3SWqQ4S5JDVq2VBtesWJFrVmzZqk2L0l7pU2bNv2iqqZG9VuycF+zZg0zMzNLtXlJ2isl+fk4/TwtI0kNMtwlqUGGuyQ1yHCXpAYZ7pLUoJH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JRU5ErkJggg==\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"'''\n",
"#Prueba de histograma\n",
"\n",
"import matplotlib.pyplot as plt\n",
"dicti={}\n",
"autores=[\"c garcia\",\"cgarcia\",\"cgarcia\",\"chernandez\"]\n",
"autores.count(\"cgarcia\")\n",
"autores.append(\"cgarcia\")\n",
"autores.count(\"cgarcia\")\n",
"\n",
"for autor in autores:\n",
" dicti.update({autor:autores.count(autor)})\n",
"\n",
"print(dicti)\n",
"\n",
"x=plt.bar(list(dicti.keys()), dicti.values(), color='r')\n",
"x\n",
"'''\n"
]
},
{
"cell_type": "code",
"execution_count": 66,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Soy la editorial: Consejo Editorial Mexicano y decido que se publica y que no\n"
]
}
],
"source": [ "source": [
"class Editorial:\n", "class Editorial:\n",
" pass" " def __init__(self,nombre):\n",
" self.nombre=nombre\n",
" \n",
" def __str__(self):\n",
" return str(\"Soy la editorial: \"+ self.nombre+\" y decido que se publica y que no\")\n",
" \n",
" def publicar(self):\n",
" '''\n",
" Funcion que publicará, de momento por autor con mayor frecuencia de aparición y/o por titulo del día con mayor frecuencia de aparicion\n",
" '''\n",
" pass\n",
"\n",
"editorial1=Editorial(\"Consejo Editorial Mexicano\")\n",
"print(editorial1)"
] ]
} }
], ],
......
...@@ -462,7 +462,7 @@ ...@@ -462,7 +462,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 201, "execution_count": 4,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -470,9 +470,9 @@ ...@@ -470,9 +470,9 @@
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"Escriba su texto: \n", "Escriba su texto: \n",
"hola mundo infeliz hola\n", "hola mundo hola\n",
"['hola', 'mundo', 'infeliz', 'hola']\n", "['hola', 'mundo', 'hola']\n",
"{'hola': 2, 'mundo': 1, 'infeliz': 1}\n" "{'hola': 2, 'mundo': 1}\n"
] ]
} }
], ],
...@@ -570,7 +570,7 @@ ...@@ -570,7 +570,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 318, "execution_count": 327,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -578,65 +578,1625 @@ ...@@ -578,65 +578,1625 @@
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"Ingresa el tamaño del cuadrado: \n", "Ingresa el tamaño del cuadrado: \n",
"3\n", "11\n",
"[[0. 0. 0.]\n", "[[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0.]\n", " [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0.]]\n", " [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]]\n",
"-----\n",
"soy j:5\n",
"[[0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0.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. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 5. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 0. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 0. 0. 0. 0.]]\n",
"-----\n",
"soy j:4\n",
"1.0\n", "1.0\n",
"La celda esta ocupada, regresa e inserta abajo\n", "La celda esta ocupada, regresa e inserta abajo\n",
"[[0. 1. 0.]\n", "[[ 0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0.]\n",
" [3. 0. 0.]\n", " [ 0. 0. 0. 0. 11. 0. 0. 0. 0. 0. 0.]\n",
" [0. 0. 2.]]\n", " [ 0. 0. 0. 10. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 5. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 0. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 0. 0. 0. 0.]]\n",
"-----\n",
"soy j:4\n",
"[[ 0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 0. 0. 0. 0. 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0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:1\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 0. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:2\n",
"23.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 0. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 0. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 0. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 0. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 0. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 0. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:2\n",
"[[ 0. 0. 0. 0. 0.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n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:7\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 0. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:8\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 0. 0.]]\n",
"-----\n",
"soy j:9\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 0.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:10\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:0\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 0. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:1\n",
"34.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 0. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:1\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 0. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:2\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 0. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:3\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 0. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:4\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 0. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:5\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 0. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:6\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 0. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:7\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 0. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:8\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 0. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:9\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 0.]]\n",
"-----\n",
"soy j:10\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [ 0. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:0\n",
"45.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [ 0. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:0\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 0. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:1\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 0. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:2\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 0. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 0. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 0. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 0. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 0. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 0. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 0. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 0.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"56.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 0.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"[[ 0. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:0\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 0. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:1\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 0. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:2\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 0. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 0. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 0. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 0. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 0. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 0. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 0. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"67.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 0. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 0.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 0. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:0\n",
"[[68. 0. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:1\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 0. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:2\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 0. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 0. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 0. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 0. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 0. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 0. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"78.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 0. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 0. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 0.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 0. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:0\n", "soy j:0\n",
"[[0. 1. 0.]\n", "[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [3. 0. 0.]\n", " [80. 0. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 0. 2.]]\n", " [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:1\n", "soy j:1\n",
"[[0. 1. 0.]\n", "[[68. 81. 0. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 0.]\n", " [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 0. 2.]]\n", " [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:2\n", "soy j:2\n",
"4.0\n", "[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 0. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 0. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 0. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 0. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 0. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 98. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"89.0\n",
"La celda esta ocupada, regresa e inserta abajo\n", "La celda esta ocupada, regresa e inserta abajo\n",
"[[0. 1. 6.]\n", "[[68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 0.]\n", " [80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 0. 2.]]\n", " [92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [19. 32. 34. 47. 60. 73. 86. 99. 0. 0. 6.]\n",
" [31. 44. 46. 59. 72. 85. 98. 0. 0. 5. 18.]\n",
" [43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 0. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 0. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 0.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [ 0. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:0\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 0. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:1\n",
"[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 0. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:2\n", "soy j:2\n",
"[[0. 1. 6.]\n", "[[ 68. 81. 94. 0. 0. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 7.]\n", " [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 0. 2.]]\n", " [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 0. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 0. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 0. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"100.0\n",
"La celda esta ocupada, regresa e inserta abajo\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 0. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:6\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 0. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:7\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 0. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:8\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 0. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:9\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 0.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:10\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [ 0. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:0\n", "soy j:0\n",
"[[8. 1. 6.]\n", "[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 7.]\n", " [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 0. 2.]]\n", " [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 0. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"soy j:1\n", "soy j:1\n",
"7.0\n", "[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 0. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:2\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 0. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 118. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:3\n",
"[[ 68. 81. 94. 107. 0. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 119. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 118. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:4\n",
"[[ 68. 81. 94. 107. 120. 1. 14. 27. 40. 53. 66.]\n",
" [ 80. 93. 106. 119. 11. 13. 26. 39. 52. 65. 67.]\n",
" [ 92. 105. 118. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 0. 2. 15. 28. 41. 54.]]\n",
"-----\n",
"soy j:5\n",
"111.0\n",
"La celda esta ocupada, regresa e inserta abajo\n", "La celda esta ocupada, regresa e inserta abajo\n",
"[[8. 1. 6.]\n", "[[ 68. 81. 94. 107. 120. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 7.]\n", " [ 80. 93. 106. 119. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 9. 2.]]\n", " [ 92. 105. 118. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 121. 2. 15. 28. 41. 54.]]\n",
"-----\n", "-----\n",
"[[8. 1. 6.]\n", "[[ 68. 81. 94. 107. 120. 1. 14. 27. 40. 53. 66.]\n",
" [3. 5. 7.]\n", " [ 80. 93. 106. 119. 11. 13. 26. 39. 52. 65. 67.]\n",
" [4. 9. 2.]]\n" " [ 92. 105. 118. 10. 12. 25. 38. 51. 64. 77. 79.]\n",
" [104. 117. 9. 22. 24. 37. 50. 63. 76. 78. 91.]\n",
" [116. 8. 21. 23. 36. 49. 62. 75. 88. 90. 103.]\n",
" [ 7. 20. 33. 35. 48. 61. 74. 87. 89. 102. 115.]\n",
" [ 19. 32. 34. 47. 60. 73. 86. 99. 101. 114. 6.]\n",
" [ 31. 44. 46. 59. 72. 85. 98. 100. 113. 5. 18.]\n",
" [ 43. 45. 58. 71. 84. 97. 110. 112. 4. 17. 30.]\n",
" [ 55. 57. 70. 83. 96. 109. 111. 3. 16. 29. 42.]\n",
" [ 56. 69. 82. 95. 108. 121. 2. 15. 28. 41. 54.]]\n"
] ]
} }
], ],
......
...@@ -4,8 +4,955 @@ ...@@ -4,8 +4,955 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"# 2.SciPy\n", "![scipy](https://cdn-images-1.medium.com/max/1600/1*Y2v3PrF1rUQRUHwOcXJznA.png)\n",
"## 2.1 NumPy" "\n",
"# 5.SciPy\n",
"SciPy es un ecosistema para computo cientifico en python, esta constriuido sobre los arreglos de NumPy. Scipy incluye herramientas como Matplotlib, pandas , SymPy y scikit-learn. \n",
"\n",
"## 5.1 NumPy\n",
"NumPy es la base para todos los paquetes de computo científico en python, provee soporte para arreglos multidimensionales y matrices, junto con una amplia coleccion de funciones matematicas de alto nivel para operar con estos arreglos.\n",
"\n",
"### 5.1.1 numpy.array \n",
"El tipo de dato mas importante de numpy es **numpy.array** sus atibutos mas importantes son:\n",
"* numpy.array.**ndim**: -numero de dimensiones del arreglo.\n",
"* numpy.array.**shape**: Un tumpla indicando el tamaño del arreglo en cada dimension.\n",
"* numpy.array.**size**: El numero total elementos en el arreglo.\n",
"* numpy.array.**dtype**: El tipo de elemenos en el arreglo e.g. numpy.int32, numpy.int16, and numpy.float64.\n",
"* numpy.array.**itemsize**: el tamaño en bytes de cada elemento del arrglo.\n",
"* numpy.array.**data**: El bloque de memoria que contiene los datos del arreglo.\n"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[ 0 1 2 3 4]\n",
" [ 5 6 7 8 9]\n",
" [10 11 12 13 14]]\n",
"(3, 5)\n",
"2\n",
"int64\n"
]
},
{
"data": {
"text/plain": [
"array([[ 0, 1, 2, 3, 4],\n",
" [ 5, 6, 7, 8, 9],\n",
" [10, 11, 12, 13, 14]], dtype=int16)"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import numpy as np\n",
"a = np.array([[ 0, 1, 2, 3, 4],\n",
" [ 5, 6, 7, 8, 9],\n",
" [10, 11, 12, 13, 14]])\n",
"print(a)\n",
"print(a.shape)\n",
"print(a.ndim)\n",
"print(a.dtype)\n",
"\n",
"b = np.array([[ 0, 1, 2, 3, 4],\n",
" [ 5, 6, 7, 8, 9],\n",
" [10, 11, 12, 13, 14]], dtype=np.int16)\n",
"b"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[1.+0.j 2.+0.j]\n",
" [3.+0.j 4.+0.j]]\n",
"2\n",
"(2, 2)\n"
]
}
],
"source": [
"c = np.array( [ [1,2], [3,4] ], dtype=complex )\n",
"print(c)\n",
"print(c.ndim)\n",
"print(c.shape)"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[[0., 0., 0.],\n",
" [0., 0., 0.]],\n",
"\n",
" [[0., 0., 0.],\n",
" [0., 0., 0.]]])"
]
},
"execution_count": 43,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"zero=np.zeros( (2,2,3) )\n",
"zero.ndim\n",
"zero"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1., 1., 1., 1.],\n",
" [1., 1., 1., 1.],\n",
" [1., 1., 1., 1.]])"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.ones( (3,4)) "
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1., 1., 1., 1.],\n",
" [1., 1., 1., 1.],\n",
" [1., 1., 1., 1.]])"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.empty( (3,4) ) "
]
},
{
"cell_type": "code",
"execution_count": 39,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1., 0., 0., 0., 0.],\n",
" [0., 1., 0., 0., 0.],\n",
" [0., 0., 1., 0., 0.],\n",
" [0., 0., 0., 1., 0.],\n",
" [0., 0., 0., 0., 1.]])"
]
},
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.eye(5)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Operaciones Basicas"
]
},
{
"cell_type": "code",
"execution_count": 58,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0, 1, 2, 3])"
]
},
"execution_count": 58,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a = np.array([20,30,40,50] )\n",
"b = np.arange( 4 )\n",
"b"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[20 31 42 53]\n",
"[20 29 38 47]\n"
]
}
],
"source": [
"#Suma\n",
"print(a+b)\n",
"# Resta\n",
"print(a-b)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 40, 60, 80, 100])"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Multiplicacion Por escalar\n",
"a*2"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0, 1, 4, 9])"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Potencia\n",
"b**2"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ True, True, True, False])"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#Operadores Boleanos\n",
"a<50"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 0, 30, 80, 150])"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#Multiplicacion por elemento\n",
"a*b"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[**Producto punto**](https://en.wikipedia.org/wiki/Dot_product) y [**Multiplicacion Matricial**](https://en.wikipedia.org/wiki/Matrix_multiplication)"
]
},
{
"cell_type": "code",
"execution_count": 70,
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"True\n",
"260\n"
]
}
],
"source": [
"print(a@b == a.dot(b))\n",
"print(a@b)"
]
},
{
"cell_type": "code",
"execution_count": 172,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 0.33333333, -0.16666667],\n",
" [-0.33333333, 0.66666667]])"
]
},
"execution_count": 172,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a = np.array([[1, 0],\n",
" [0, 1]])\n",
"\n",
"b = np.array([[4, 1],\n",
" [2, 2,]])\n",
"\n",
"np.linalg.inv(b)"
]
},
{
"cell_type": "code",
"execution_count": 130,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[5 1]\n",
" [2 3]]\n",
"[[1 0]\n",
" [0 1]]\n",
"--------\n",
"[[4 1]\n",
" [2 2]]\n"
]
},
{
"data": {
"text/plain": [
"array([[4, 1],\n",
" [2, 2]])"
]
},
"execution_count": 130,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"print(a+b)\n",
"print(a)\n",
"print(\"--------\")\n",
"print(b)\n",
"np.matmul(a, b) == a.dot(b)\n",
"a.dot(b)"
]
},
{
"cell_type": "code",
"execution_count": 126,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[5 8 7]\n",
"---------\n",
"[[[9 5 3]\n",
" [5 8 7]]\n",
"\n",
" [[1 2 3]\n",
" [4 5 7]]]\n"
]
}
],
"source": [
"#3 Dimensiones ejemplo\n",
"rgb1=np.array([[[9,5,3],[5,8,7]],[[1,2,3],[4,5,7]]])\n",
"print(rgb1[0][1])\n",
"print(\"---------\")\n",
"print(rgb1)"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"66"
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"c= np.arange(12).reshape(3,4)\n",
"c.sum()"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([12, 15, 18, 21])"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"c.sum(axis=0) # Suma por Columna"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 6, 22, 38])"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"c.sum(axis=1) #Suma por Fila"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Elementos, filas, columnas y subarreglos."
]
},
{
"cell_type": "code",
"execution_count": 139,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 0, 1, 2, 3],\n",
" [10, 11, 12, 13],\n",
" [20, 21, 22, 23],\n",
" [30, 31, 32, 33],\n",
" [40, 41, 42, 43]])"
]
},
"execution_count": 139,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"def f(x,y):\n",
" return 10*x+y\n",
"\n",
"b = np.fromfunction(f,(5,4),dtype=int)\n",
"b"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"3"
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"b[0,3]"
]
},
{
"cell_type": "code",
"execution_count": 142,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[11 12]\n",
"[10 11 12 13]\n"
]
}
],
"source": [
"print(b[1,1:3])\n",
"print(b[1,:])"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 1, 11, 21, 31, 41])"
]
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"b[:,1]"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 1, 2],\n",
" [11, 12]])"
]
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"b[:2,1:3]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Iterando elementos"
]
},
{
"cell_type": "code",
"execution_count": 146,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0 1 2 3]\n",
"[10 11 12 13]\n",
"[20 21 22 23]\n",
"[30 31 32 33]\n",
"[40 41 42 43]\n"
]
}
],
"source": [
"for row in b:\n",
" print(row)"
]
},
{
"cell_type": "code",
"execution_count": 144,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0\n",
"1\n",
"2\n",
"3\n",
"10\n",
"11\n",
"12\n",
"13\n",
"20\n",
"21\n",
"22\n",
"23\n",
"30\n",
"31\n",
"32\n",
"33\n",
"40\n",
"41\n",
"42\n",
"43\n"
]
}
],
"source": [
"for element in b.flat:\n",
" print(element)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Cambio de forma"
]
},
{
"cell_type": "code",
"execution_count": 148,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[0., 8., 2., 0.],\n",
" [6., 5., 6., 3.],\n",
" [2., 0., 7., 3.]])"
]
},
"execution_count": 148,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a = np.floor(10*np.random.random((3,4)))\n",
"a"
]
},
{
"cell_type": "code",
"execution_count": 149,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(3, 4)"
]
},
"execution_count": 149,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.shape"
]
},
{
"cell_type": "code",
"execution_count": 150,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[0., 8.],\n",
" [2., 0.],\n",
" [6., 5.],\n",
" [6., 3.],\n",
" [2., 0.],\n",
" [7., 3.]])"
]
},
"execution_count": 150,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.reshape(6,2)"
]
},
{
"cell_type": "code",
"execution_count": 151,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[0., 6., 2.],\n",
" [8., 5., 0.],\n",
" [2., 6., 7.],\n",
" [0., 3., 3.]])"
]
},
"execution_count": 151,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.T"
]
},
{
"cell_type": "code",
"execution_count": 152,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ True, True, True],\n",
" [ True, True, True],\n",
" [ True, True, True],\n",
" [ True, True, True]])"
]
},
"execution_count": 152,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.transpose()==a.T"
]
},
{
"cell_type": "code",
"execution_count": 153,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(4, 3)"
]
},
"execution_count": 153,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a.T.shape"
]
},
{
"cell_type": "code",
"execution_count": 159,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[0., 8., 2., 0.],\n",
" [6., 5., 6., 3.],\n",
" [2., 0., 7., 3.]])"
]
},
"execution_count": 159,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# La dimension con -1 se calcula automaticamente\n",
"a.reshape(3,-1)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 5.2 Ejercicos\n",
"\n",
"### 5.2.1 Sin utilizar numpy escribe una funcion para obten el producto punto de dos vectores."
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [],
"source": [
"#Para cualquier N\n",
"a = [2, 5.6, 9, 8, 10]\n",
"b = [1, 3, 2.4, 2, 11]"
]
},
{
"cell_type": "code",
"execution_count": 75,
"metadata": {},
"outputs": [],
"source": [
"#Tarea, generar el producto punto\n",
"def prod_punto(v1,v2):\n",
" '''\n",
" Soy un docstring\n",
" '''\n",
" pass\n",
" #return prod_punto"
]
},
{
"cell_type": "code",
"execution_count": 170,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[1, 2, 3], [4, 5, 6]]\n"
]
},
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 170,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#Matriz sin numpy para la tarea\n",
"aaa=[[1,2,3],[4,5,6]]\n",
"print(aaa)\n",
"aaa[0][1]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 5.2.2 Sin utilizar numpy escribe una funcion que obtenga la multiplicacion de dos matrices.\n"
]
},
{
"cell_type": "code",
"execution_count": 165,
"metadata": {},
"outputs": [],
"source": [
"A = [[1,2,3],\n",
" [4,5,6]]\n",
"B = [[7,8],[9,10],[11,12]]"
]
},
{
"cell_type": "code",
"execution_count": 162,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[1, 2, 3], [4, 5, 6]]\n",
"[[7, 8], [9, 10], [11, 12]]\n"
]
}
],
"source": [
"print(A)\n",
"print(B)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 5.2.3 Utiliza numpy para probar que las dos funciones anteriores dan el resultado correcto."
] ]
}, },
{ {
...@@ -19,7 +966,408 @@ ...@@ -19,7 +966,408 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## 2.2 Pandas" "### 5.2.4 Utilizando solo lo visto hasta el momento de numpy escribe una funcion que encuentre la inversa de una matriz por el metodo de Gauss-Jordan.\n",
"[Wikipedia](https://en.wikipedia.org/wiki/Gaussian_elimination): En matemáticas, la eliminación de Gauss Jordan, llamada así en honor de Carl Friedrich Gauss y Wilhelm Jordan es un algoritmo del álgebra lineal que se usa para determinar las soluciones de un sistema de ecuaciones lineales, para encontrar matrices e inversas. Un sistema de ecuaciones se resuelve por el método de Gauss cuando se obtienen sus soluciones mediante la reducción del sistema dado a otro equivalente en el que cada ecuación tiene una incógnita menos que la anterior. El método de Gauss transforma la matriz de coeficientes en una matriz triangular superior. El método de Gauss-Jordan continúa el proceso de transformación hasta obtener una matriz diagonal"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 5.2.5 Utilizando la funcion anterior escribe otra que obtenga la pseduo-inversa de una matriz."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 5.3 Pandas\n",
"En python, pandas es una biblioteca de software escrita como extensión de NumPy para manipulación y análisis de datos. En particular, ofrece estructuras de datos y operaciones para manipular tablas numéricas y series temporales.\n",
"and expressive data structures designed to make working with “relational” or “labeled” data both easy and intuitive. Su objetivo es ser un bloque de construccion fundamental para realizar analisis de datos en el mundo real.\n",
"El nombre de la biblioteca deriva del término \"datos de panel\" (PANel DAta), término de econometría que designa datos que combinan una dimensión temporal con otra dimensión transversal.\n",
"\n",
"Pandas tiene dos typos de datos principales, **Series** (1D) y **DataFrame** (2D), *Dataframe* es un contenedr para *Series* y *Series* es un contenedor de escalares. \n",
"\n",
"### 5.3.1 Series\n",
"Series es un arreglo unidimensional etiquetado capaz de contener cualquier tipo de dato (Enteros, cadenas, punto flotante, objetos, etc), El eje de etiquetas es llamado indice (**index**).\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 41,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 51,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a 0.994272\n",
"b 0.530519\n",
"c 1.162452\n",
"d -0.981436\n",
"e -1.283798\n",
"dtype: float64"
]
},
"execution_count": 51,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s = pd.Series(np.random.randn(5), index=['a', 'b', 'c', 'd', 'e'])\n",
"s"
]
},
{
"cell_type": "code",
"execution_count": 46,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 2.042498\n",
"1 -0.964070\n",
"2 -0.687132\n",
"3 0.623300\n",
"4 1.366322\n",
"dtype: float64"
]
},
"execution_count": 46,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pd.Series(np.random.randn(5))"
]
},
{
"cell_type": "code",
"execution_count": 47,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a 0\n",
"b 1\n",
"c 2\n",
"dtype: int64"
]
},
"execution_count": 47,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"d = {'b': 1, 'a': 0, 'c': 2}\n",
"pd.Series(d)"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"b 1.0\n",
"c 2.0\n",
"d NaN\n",
"a 0.0\n",
"dtype: float64"
]
},
"execution_count": 48,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"d = {'a': 0., 'b': 1., 'c': 2.}\n",
"pd.Series(d, index=['b', 'c', 'd', 'a'])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Las Series son compatibles con *numpy.array* y *dict*"
]
},
{
"cell_type": "code",
"execution_count": 53,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.9942721192063438"
]
},
"execution_count": 53,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[0]"
]
},
{
"cell_type": "code",
"execution_count": 54,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a 0.994272\n",
"b 0.530519\n",
"c 1.162452\n",
"dtype: float64"
]
},
"execution_count": 54,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[:3]"
]
},
{
"cell_type": "code",
"execution_count": 55,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a 0.994272\n",
"b 0.530519\n",
"c 1.162452\n",
"dtype: float64"
]
},
"execution_count": 55,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[s>s.mean()]"
]
},
{
"cell_type": "code",
"execution_count": 56,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a 1.988544\n",
"b 1.061037\n",
"c 2.324904\n",
"d -1.962872\n",
"e -2.567597\n",
"dtype: float64"
]
},
"execution_count": 56,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s*2"
]
},
{
"cell_type": "code",
"execution_count": 57,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"a True\n",
"b False\n",
"c True\n",
"d False\n",
"e False\n",
"dtype: bool"
]
},
"execution_count": 57,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s>s.median()"
]
},
{
"cell_type": "code",
"execution_count": 58,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.9942721192063438"
]
},
"execution_count": 58,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[\"a\"]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Alieneacion Automatica"
]
},
{
"cell_type": "code",
"execution_count": 59,
"metadata": {},
"outputs": [],
"source": [
"a = np.array(range(10))\n",
"s = pd.Series(a)"
]
},
{
"cell_type": "code",
"execution_count": 60,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"
]
},
"execution_count": 60,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a"
]
},
{
"cell_type": "code",
"execution_count": 62,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 0\n",
"1 1\n",
"2 2\n",
"3 3\n",
"4 4\n",
"5 5\n",
"6 6\n",
"7 7\n",
"8 8\n",
"9 9\n",
"dtype: int64"
]
},
"execution_count": 62,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s"
]
},
{
"cell_type": "code",
"execution_count": 75,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 4, 6, 8, 10, 12, 14])"
]
},
"execution_count": 75,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(a[:6]+a[4:])"
]
},
{
"cell_type": "code",
"execution_count": 76,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 NaN\n",
"1 NaN\n",
"2 NaN\n",
"3 NaN\n",
"4 8.0\n",
"5 10.0\n",
"6 NaN\n",
"7 NaN\n",
"8 NaN\n",
"9 NaN\n",
"dtype: float64"
]
},
"execution_count": 76,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(s[:6]+s[4:])"
] ]
}, },
{ {
...@@ -46,7 +1394,7 @@ ...@@ -46,7 +1394,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.6.8rc1" "version": "3.5.2"
} }
}, },
"nbformat": 4, "nbformat": 4,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment