ionnidas


Using Randomized Algorithms for Optimizing Join Queries

Yannis Ionnidas & Younkyung Cha Kang, University of Wisconsin, Madison, 1990

Summary. The authors performed experiments using 2 different randomized algorithms to find close-to-minimal cost access plans: Simulated Annealing (SA) and Iterative Improvement (II). As a performance measure, they defined the cheapest plan found by either of the 3 to be minimal. They found that II found relatively cheap plans quickly but did not converge to a plan as cheap as that found by SA. SA, on the other hand, eventually found a close-to-minimal, if not the minimal, but it took longer to find. Based on these observations, the authors combined the two algorithms into what they coined the Two-Phase Optimization (2PO). 2PO uses II to quickly find what they called the ``cup bottom'' (area populated by minimal cost plans)of the plan space. Once in the ``cup bottom'', they switch to SA to find the final plan. 2PO outperformed either.


More detail

.


After class notes

The measurement of how well the algorithms performed was based on the best plan provided by any of the 3 plans over a given query size NOT the actual true minimal plan.

Although their plan space may indeed have been a cup, other plan spaces for other testbeds may not be.