Graphs represent abstraction of real-world problems. Our first problem involved the bridges of Konigsberg, and the real-world items we represented by a graph were of two sorts: landmasses, and the bridges which connected them. The mathematician is uninterested in the actual contours and magnitude of the landmasses, and so shrinks them down to points; similarly, she ignores the actual dimensions of the bridges, simply representing them as curve connectors of the point landmasses.
This process of abstraction is essential to the solution of many real-world problems. In another example, we considered the four-color mapping problem, in which the two items were states ("landmasses") and the borders between them ("bridges").
The Konigsberg bridge problem inspired the great mathematician Euler to propose a theorem about special paths: those paths which pass over every edge of a graph exactly once (Eulerian paths and circuits).
We saw, however, that many real-life graphs do not have either zero or exactly two odd vertices. In those cases we may still want to carry out the same sort of task as the citizens of Konigsberg: we want to pass over every bridge (or street, or sidewalk) with as little backtracking as possible. This is a typical problem in graph theory. In order to solve it, we use
As we showed in exercise #32, p. 379, there is always an even number of odd vertices in a graph.
For practical purposes, you might think of these new edges as backtracks along the original edges. Often the original edges represent something concrete (e.g. bridges, streets, sidewalks, circuit boards), whereas the edges we add in Eulerization simply reflect the fact that we need to travel over the existing edges more than once.
In this section, we change the focus from the edges to the vertices. While Euler concerned himself with the edges, the great Irish mathematician Hamilton focused on the vertices. Euler's problem was to pass over every edge exactly once, whereas Hamilton worried about passing through each vertex exactly once (arriving back home after a circuit of all vertices was made).
Often there is a penalty associated with travelling from one vertex to another. For example, the penalty may be the distance (and hence cost of moving) between the points, or the energy required to move from one position to another. Hence the edges have a value of some sort associated with them. This leads us to the concept of the
Business is terribly interested in this type of problem, and especially in the general optimization problem of minimizing the cost (distance, time, etc.) of traveling between all points in the graph. This accounts for the importance mathematicians attribute to this problem.
We will consider only a special type of weighted graph in this section. Often it is possible to consider going directly from any vertex to any other vertex, which results in what is called a
Sometimes a simple problem has no simple solution, and that's the case of the traveling salesman problem. The computational methods for solving large problems of this type require so much computer time that weeks, months, or years may go by while you wait for your solution. For that reason, we often consider methods which give only approximations to the actual solution. In this section we consider two such algorithms. The first is the
We saw that the solution obtained using the nearest neighbor algorithm was not necessarily optimal ("the best"): that is, by comparing all possible Hamiltonian circuits the nearest neighbor solution did not give the lowest total weight (e.g. #7, p. 396, discussed in class). The hope is always that the algorithms will give a solution which, while perhaps not the best, is still pretty good.
We considered a second algorithm, the
A different kind of problem that arises in graph theory is the problem of connecting vertices in a sensible way: we may want to connect all vertices to each other without making spurious connections (connections may be expensive, for example). Thus we want to be efficient in our connections, and not make any that are unnecessary.
Example:
As an example, I mentioned the "spoke and hub" networks that many airlines use: it may be expensive to connect minor cities with direct flights, so the airlines create networks that require customers to fly from a city to a hub (along a spoke), and then from the hub to the destination (along a separate hub).
In general, a business's problem can often be stated as a search for a
Once again, we have an algorithm, only this time the algorithm actually finds the solution! It's called