diff --git a/notebooks/original-1.ipynb b/notebooks/original-1.ipynb index 1a82f745a..ab21e03bb 100644 --- a/notebooks/original-1.ipynb +++ b/notebooks/original-1.ipynb @@ -30,7 +30,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Up to this point we have been concerned mainly with tools to access and operate on array data with NumPy.\n", + "v5change -- Up to this point we have been concerned mainly with tools to access and operate on array data with NumPy.\n", "This section covers algorithms related to sorting values in NumPy arrays.\n", "These algorithms are a favorite topic in introductory computer science courses: if you've ever taken one, you probably have had dreams (or, depending on your temperament, nightmares) about *insertion sorts*, *selection sorts*, *merge sorts*, *quick sorts*, *bubble sorts*, and many, many more.\n", "All are means of accomplishing a similar task: sorting the values in a list or array.\n", @@ -48,7 +48,7 @@ "source": [ "import numpy as np\n", "\n", - "def selection_sort(x):\n", + "def v5_selection_sort(x):\n", " for i in range(len(x)):\n", " swap = i + np.argmin(x[i:])\n", " (x[i], x[swap]) = (x[swap], x[i])\n",