Chapter 3
Chapter 3
• States: Each state obviously includes a location (e.g., an airport) and the current time.
Furthermore, because the cost of an action (a flight segment) may depend on previous
segments, their fare bases, and their status as domestic or international, the state must
record extra information about these “historical” aspects.
• Initial state: This is specified by the user’s query.
• Actions: Take any flight from the current location, in any seat class, leaving after the
current time, leaving enough time for within-airport transfer if needed.
• Transition model: The state resulting from taking a flight will have the flight’s destination
as the current location and the flight’s arrival time as the current time.
• Goal test: Are we at the final destination specified by the user?
• Path cost: This depends on monetary cost, waiting time, flight time, customs and immigration
procedures, seat quality, time of day, type of airplane, frequent-flyer mileage
awards, and so on.
Touring Problem
• Touring problems are closely related to route-finding problems, but
with an important difference
• Consider, for example, the problem “Visit every city in Figure 3.2 at
least once, starting and ending in Bucharest.”
• As with route finding, the actions correspond to trips between
adjacent cities. The state space, however, is quite different.
• Each state must include not just the current location but also the set
of cities the agent has visited.
• So the initial state would be In(Bucharest ), Visited({Bucharest}), a
typical intermediate state would be In(Vaslui ), Visited({Bucharest ,
Urziceni , Vaslui}), and the goal test would check whether the agent is
in Bucharest and all 20 cities have been visited.
Traveling salesperson problem (TSP)
• The Travelling Salesperson Problem (TSP) is a well-known
optimization problem where a salesperson must visit a set of cities,
each exactly once, and return to the starting city, while minimizing the
total distance traveled (or cost incurred). The objective is to find the
shortest possible route that visits each city only once.
• The aim is to find the shortest tour
• The problem is known to be NP-hard, but an enormous amount of
effort has been expended to improve the capabilities of TSP
algorithms.
• In addition to planning trips for traveling salespersons, these
algorithms have been used for tasks such as planning movements of
automatic circuit-board drills and of stocking machines on shop floors.
• Refer the document
VLSI layout
• A VLSI layout problem requires positioning millions of components and
connections on a chip to minimize area, minimize circuit delays, minimize stray
capacitances, and maximize manufacturing yield.
• The layout problem comes after the logical design phase and is usually split into
two parts: cell layout and channel routing.
• In cell layout, the primitive components of the circuit are grouped into cells, each
of which performs some recognized function.
• Each cell has a fixed footprint (size and shape) and requires a certain number of
connections to each of the other cells. The aim is to place the cells on the chip so
that they do not overlap and so that there is room for the connecting wires to be
placed between the cells.
• Channel routing finds a specific route for each wire through the gaps between
the cells. These search problems are extremely complex, but definitely worth
solving.
• Similary robot navigation, automatic assembly sequencing, protein
design are some example with respect to real world problems
UNINFORMED SEARCH STRATEGIES
• Uninformed search strategies, also known as blind search strategies, are a category
of search algorithms that operate without any additional information about the
problem domain, other than the definition of the problem itself (such as the initial
state, goal state, and possible actions).
• These algorithms do not use any domain-specific knowledge or heuristics to guide
the search. They explore the search space systematically to find a solution but have
no insight into which path might be more promising than others.
• Key Characteristics of Uninformed Search:
• No Heuristic Knowledge: They do not have any information that helps estimate how
far the current state is from the goal.
• Systematic Exploration: They explore the search space by expanding nodes based on
the search method’s rules (e.g., depth-first, breadth-first).
• Solution Finding: The goal is to find a solution (often the shortest path), but the
algorithms may not guarantee the optimal solution unless explicitly designed to do so
(like Breadth-First Search).
We can evaluate an algorithm’s performance in four ways: