|
31 | 31 | "cell_type": "markdown",
|
32 | 32 | "metadata": {},
|
33 | 33 | "source": [
|
34 |
| - "## Review\n", |
| 34 | + "## CONTENTS\n", |
| 35 | + "\n", |
| 36 | + "* Overview\n", |
| 37 | + "* Problem\n", |
| 38 | + "* Search Algorithms Visualization\n", |
| 39 | + "* Breadth-First Tree Search\n", |
| 40 | + "* Breadth-First Search\n", |
| 41 | + "* Uniform Cost Search\n", |
| 42 | + "* A\\* Search\n", |
| 43 | + "* Genetic Algorithm" |
| 44 | + ] |
| 45 | + }, |
| 46 | + { |
| 47 | + "cell_type": "markdown", |
| 48 | + "metadata": {}, |
| 49 | + "source": [ |
| 50 | + "## OVERVIEW\n", |
35 | 51 | "\n",
|
36 | 52 | "Here, we learn about problem solving. Building goal-based agents that can plan ahead to solve problems, in particular, navigation problem/route finding problem. First, we will start the problem solving by precisely defining **problems** and their **solutions**. We will look at several general-purpose search algorithms. Broadly, search algorithms are classified into two types:\n",
|
37 | 53 | "\n",
|
|
57 | 73 | "cell_type": "markdown",
|
58 | 74 | "metadata": {},
|
59 | 75 | "source": [
|
60 |
| - "## Problem\n", |
| 76 | + "## PROBLEM\n", |
61 | 77 | "\n",
|
62 | 78 | "Let's see how we define a Problem. Run the next cell to see how abstract class `Problem` is defined in the search module."
|
63 | 79 | ]
|
|
184 | 200 | "cell_type": "markdown",
|
185 | 201 | "metadata": {},
|
186 | 202 | "source": [
|
187 |
| - "# Romania map visualisation\n", |
| 203 | + "### Romania Map Visualisation\n", |
188 | 204 | "\n",
|
189 | 205 | "Let's have a visualisation of Romania map [Figure 3.2] from the book and see how different searching algorithms perform / how frontier expands in each search algorithm for a simple problem named `romania_problem`."
|
190 | 206 | ]
|
|
420 | 436 | "cell_type": "markdown",
|
421 | 437 | "metadata": {},
|
422 | 438 | "source": [
|
423 |
| - "## Searching algorithms visualisations\n", |
| 439 | + "## SEARCHING ALGORITHMS VISUALIZATION\n", |
424 | 440 | "\n",
|
425 |
| - "In this section, we have visualisations of the following searching algorithms:\n", |
| 441 | + "In this section, we have visualizations of the following searching algorithms:\n", |
426 | 442 | "\n",
|
427 | 443 | "1. Breadth First Tree Search - Implemented\n",
|
428 | 444 | "2. Depth First Tree Search\n",
|
|
559 | 575 | "cell_type": "markdown",
|
560 | 576 | "metadata": {},
|
561 | 577 | "source": [
|
| 578 | + "## BREADTH-FIRST TREE SEARCH\n", |
562 | 579 | "\n",
|
563 |
| - "## Breadth first tree search\n", |
564 |
| - "\n", |
565 |
| - "We have a working implementation in search module. But as we want to interact with the graph while it is searching, we need to modify the implementation. Here's the modified breadth first tree search.\n", |
566 |
| - "\n" |
| 580 | + "We have a working implementation in search module. But as we want to interact with the graph while it is searching, we need to modify the implementation. Here's the modified breadth first tree search." |
567 | 581 | ]
|
568 | 582 | },
|
569 | 583 | {
|
|
654 | 668 | "collapsed": true
|
655 | 669 | },
|
656 | 670 | "source": [
|
657 |
| - "## Breadth first search\n", |
| 671 | + "## BREADTH-FIRST SEARCH\n", |
658 | 672 | "\n",
|
659 | 673 | "Let's change all the node_colors to starting position and define a different problem statement."
|
660 | 674 | ]
|
|
740 | 754 | "cell_type": "markdown",
|
741 | 755 | "metadata": {},
|
742 | 756 | "source": [
|
743 |
| - "## Uniform cost search\n", |
| 757 | + "## UNIFORM COST SEARCH\n", |
744 | 758 | "\n",
|
745 | 759 | "Let's change all the node_colors to starting position and define a different problem statement."
|
746 | 760 | ]
|
|
832 | 846 | "cell_type": "markdown",
|
833 | 847 | "metadata": {},
|
834 | 848 | "source": [
|
835 |
| - "## A* search\n", |
| 849 | + "## A\\* SEARCH\n", |
836 | 850 | "\n",
|
837 | 851 | "Let's change all the node_colors to starting position and define a different problem statement."
|
838 | 852 | ]
|
|
967 | 981 | "cell_type": "markdown",
|
968 | 982 | "metadata": {},
|
969 | 983 | "source": [
|
970 |
| - "## Genetic Algorithm\n", |
| 984 | + "## GENETIC ALGORITHM\n", |
971 | 985 | "\n",
|
972 | 986 | "Genetic algorithms (or GA) are inspired by natural evolution and are particularly useful in optimization and search problems with large state spaces.\n",
|
973 | 987 | "\n",
|
|
0 commit comments