|
ABSTRACT
The optimization of a large class of queries is explored, using a powerful normal form recently proven. The queries include the fixpoint and while queries, and an extension of while with arithmetic. The optimization method is evaluated using a probabilistic analysis. In particular, the average complexity of fixpoint and while is considered and some surprising results are obtained. They suggest that the worst-case complexity is sometimes overly pessimistic for such queries, whose average complexity is often much more reasonable than the provably rare worst case. Some computational properties of queries are also investigated. A probabilistic notion of boundedness is defined, and it is shown that all programs in the class considered are bounded almost everywhere. An effective way of using this fact is provided.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
AG92
|
S. Abiteboul and A. Van Gelder. Optimizing active databases using the split technique. Technical report, INRIA, 1992.
|
| |
AS91
|
|
| |
AV91a
|
|
 |
AV91b
|
|
| |
AVV91
|
$. Abiteboul, M. Vardi, and V. Vianu. Fixpoint logics, relational machines, and computational complexity. Technical report, in preparation, 1991.
|
| |
AVV92
|
S. Abiteboul, M. Vardi, and V. Vianu. Computing with infinitary logic. Technical report, in preparation, 1992.
|
| |
Bol85
|
B61a Bollob~s. Random Graphs. Academic Press, London, 1985.
|
| |
CH80
|
A.K. Chandra and D. Harel. Computable queries for relational data bases. Journal of Computer and System Sciences, 21(2):156- 178, 1980.
|
| |
CH82
|
A.K. Chandra and D. Harel. Structure and complexity of relational queries. Journal of Computer and System Sciences, 25(I):99-128, 1982.
|
 |
Cha81
|
|
| |
Dah87
|
|
| |
Fag90
|
|
 |
Gel89
|
|
| |
GJ79
|
|
| |
Gra83
|
E. Grandjean. Complexity of the first-order theory of almost all finite structures. Inform. and Control, 57:180-204, 1983.
|
| |
GS86
|
Y. Gurevich and S. Shelah. Fixed-point extensions of first-order logic. Annals of Pure and Applied Logic, 32:265-280, 1986.
|
| |
Gur91
|
|
| |
Imm86
|
|
| |
Imm87
|
N. Immerman. Expressibility as a complexity measure: Results and directions. Technical Report DCS-TR-538, Yale Univ., 1987.
|
 |
KA89
|
|
| |
Kan91
|
|
| |
Kol91
|
|
 |
KP88
|
|
 |
KV87
|
|
| |
KV90a
|
P. Kolaitis and M. Vardi. 0-1 laws for infinitary logics. In 5th IEEE Syrup. on Logic in Computer Science, pages 156-167, t990.
|
| |
KV90b
|
Phokion G. Kolaitis and Moshe Y. Vardi. 0-1 laws for infinitary logics. In Proc. 5th IEEE Conf. on Logic in Computer Science, pages 156-167, Los Angeles, 1990. IEEE Computer Society Press.
|
| |
KV92
|
|
| |
Lev86
|
|
 |
SN91
|
|
| |
SS88
|
Saharon Shelah and Joel Spencer. Zero-one laws for sparse random graphs. Amer. J. Math., 1:97-115, 1988.
|
| |
Ull88
|
|
 |
Var82
|
|
| |
Var92
|
M. Vardi, 1992. email communication.
|
| |
Wil84
|
H.S. Will. Backtrack: an o(1)expected time algorithm for the graph coloring problem. Information Processing Letters, 18:3:119-121, 1984.
|
|