This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* A calculator | |
| * | |
| * Write a function that takes a string of arithmetic equation below and returns a scalar as the evaluation | |
| * of the equation. Arithmetic supports 4 operators: +, *, &, | | |
| * where: | |
| * | |
| * +, and * are defined in their usual fashion | |
| * &, and | are defined as pairwise max() and min() respectively | |
| * &, | have higher priority over +, * | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ---------- | |
| # User Instructions: | |
| # | |
| # Implement the function optimum_policy2D below. | |
| # | |
| # You are given a car in grid with initial state | |
| # init. Your task is to compute and return the car's | |
| # optimal path to the position specified in goal; | |
| # the costs for each motion are as defined in cost. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %load_ext autoreload | |
| %autoreload 2 | |
| # Exclude autoimports | |
| %aimport -np | |
| %aimport -pd | |
| %aimport -sp | |
| %aimport -sklearn | |
| %aimport -skimage | |
| %aimport -mpl |