Artificial Intelligence Applications in Engineering (MUH-920), week 2 of 14: interactive lab
Prof. Dr. Utku Kose, Süleyman Demirel University
Part A counts the nodes of search trees and the orders of jobs. Part B runs breadth-first search, uniform-cost search, A*, weighted A* and greedy best-first search step by step on the road network of the lecture and checks whether the heuristic is admissible [1]. Part C is a grid on which walls and slow terrain are painted with the pointer. Breadth-first search, uniform-cost search, greedy best-first search, A* and weighted A* run on the same map, animated step by step, and report path cost and expanded cells [1, 2]. Part D plans a route across a synthetic valley in which each move costs distance plus a slope penalty, and moves steeper than a grade limit are forbidden, as in haul-road and pipeline design. Part E shows every decision of simulated annealing on a cost profile [3].
The table adds up the levels of a complete search tree, checks the sum against the closed formula of the lecture and counts the extra nodes of iterative deepening. The second table builds the factorial n! by one multiplication per job [4, 5].
The network of the worked examples is drawn on the left. Each click expands one node and lists every cost update with the formulas of the lecture, g(n') = g(n) + c(n, n') and f(n) = g(n) + h(n); the frontier is sorted by the priority of the chosen algorithm. The road costs can be edited: Lowering a cost below the straight-line distance makes the heuristic inadmissible, and the table at the bottom shows where [1, 2].
Green is the start, red the goal. Light blue cells were expanded; the orange line is the returned path. Breadth-first search ignores the cost of slow terrain.
Darker cells are higher. The route starts on the left and ends on the right. Raise the slope penalty to see the route follow contour lines; lower the grade limit to see which slopes become impassable.
A single solution x moves along a cost profile with several valleys. Each step proposes a neighbour, computes the change in cost and, for a worsening, the acceptance probability e−Δ/T, and compares it with a random number. A start temperature of zero turns the method into hill climbing, which stops in the nearest valley [3].
Six questions with instant feedback. Rate your confidence before checking each answer.
Answers are saved in this browser only. The export creates a Markdown learning log for your portfolio.
After the export, continue with the discipline challenge and the weekly task in the week overview.
[1] Hart, P. E., Nilsson, N. J., & Raphael, B. (1968). A formal basis for the heuristic determination of minimum cost paths. IEEE Transactions on Systems Science and Cybernetics, 4(2), 100-107. https://doi.org/10.1109/TSSC.1968.300136
[2] Dijkstra, E. W. (1959). A note on two problems in connexion with graphs. Numerische Mathematik, 1, 269-271. https://doi.org/10.1007/BF01386390
[3] Kirkpatrick, S., Gelatt, C. D., & Vecchi, M. P. (1983). Optimization by simulated annealing. Science, 220(4598), 671-680. https://doi.org/10.1126/science.220.4598.671
[4] Russell, S., & Norvig, P. (2021). Artificial Intelligence: A Modern Approach (4th ed.). Pearson.
[5] Korf, R. E. (1985). Depth-first iterative-deepening: An optimal admissible tree search. Artificial Intelligence, 27(1), 97-109. https://doi.org/10.1016/0004-3702(85)90084-0