Merge pull request #140 from Emmet-Ray/main

a tiny typo in Maze.ipynb
This commit is contained in:
Peter Norvig 2025-05-30 14:08:15 -07:00 committed by GitHub
commit 275efe078a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,7 +68,7 @@
"I'll make the following implementation choices:\n",
"\n",
"- A tree will be represented as a set of edges.\n",
"- An `Edge` is a tuple of two nodes. Edges are bidirectional, so to avoid confusion we will always us the tuple that is in sorted order: always `(A, B)`, never `(B, A)`. The constructor `edge` enforces that.\n",
"- An `Edge` is a tuple of two nodes. Edges are bidirectional, so to avoid confusion we will always use the tuple that is in sorted order: always `(A, B)`, never `(B, A)`. The constructor `edge` enforces that.\n",
"- A node in a tree can be anything: a number, a letter, ... In this notebook we will make trees where the nodes are squares in a grid, but the function `random_tree` accepts nodes of any type.\n",
"- The algorithm for `random_tree(nodes, neighbors, pop)` works as follows:\n",
" * The arguments are:\n",