|
|
|
@ -1,5 +1,15 @@
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
"nbformat": 4,
|
|
|
|
|
"nbformat_minor": 0,
|
|
|
|
|
"metadata": {
|
|
|
|
|
"colab": {
|
|
|
|
|
"provenance": []
|
|
|
|
|
},
|
|
|
|
|
"kernelspec": {
|
|
|
|
|
"name": "python3",
|
|
|
|
|
"display_name": "Python 3"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"cells": [
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "markdown",
|
|
|
|
@ -470,7 +480,7 @@
|
|
|
|
|
"import numpy as np\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"mat = np.ones((5,4))\n",
|
|
|
|
|
"vec = np.random.rand(5) # in-memory vector in all map tasks\n",
|
|
|
|
|
"vec = np.random.rand(4) # in-memory vector in all map tasks\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"def MAP(coordinates:(int, int), value:int):\n",
|
|
|
|
|
" i, j = coordinates\n",
|
|
|
|
@ -928,9 +938,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "MQhoJaVZI93G"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -963,9 +971,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "3GRA1JR-Tkbg"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -987,9 +993,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "MPoY5pkfUNZf"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1009,9 +1013,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "hQPn3USsIkEC"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1031,9 +1033,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "okjbyApjGhMt"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1057,9 +1057,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "4nKIKe59uIfc"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1083,9 +1081,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "BEvuY4GqvhS6"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1107,9 +1103,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "Sns7a5agv3nw"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1131,9 +1125,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "XKlBZh4IwERR"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1155,9 +1147,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "QE_AC09lwZIZ"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1179,9 +1169,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "yHiuuTctw86I"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1203,9 +1191,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "MLPckfEGxico"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1234,9 +1220,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "KQhDbiL3zS9r"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1418,9 +1402,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "3B7rIAJCaHZq"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1438,9 +1420,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "TDM_s78Rb5eR"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
},
|
|
|
|
@ -1458,9 +1438,7 @@
|
|
|
|
|
"metadata": {
|
|
|
|
|
"id": "ehN0FqRDcwU5"
|
|
|
|
|
},
|
|
|
|
|
"source": [
|
|
|
|
|
""
|
|
|
|
|
],
|
|
|
|
|
"source": [],
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"outputs": []
|
|
|
|
|
}
|
|
|
|
|