Update Maze.ipynb
This commit is contained in:
parent
58326a0d84
commit
48fa5396e0
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user