View Single Post
Old 02-07-2004, 07:44 AM   #1 (permalink)
kel
WARNING: FLAMMABLE
 
Location: Ask Acetylene
[THEORY]DBMS join order optimization

So I have been mulling over this question from a problem set for the past week.

Quote:
Show that the lowest-cost join order can be computed in time O(3^n). Assume that you can store and look up information about a set of relations (such as the optimal join order for the set, and the cost of that join order) in constant time. The proof will require the use of a binomial theorem.
(I will format it in PDF and post it here).

The pseudocode for the algorithm used in optimization is also in the PDF which I will post in 10 minutes.

[EDIT] OKAY, here it is. The binomial theorem and the pseudocode for the join order optimization algorithm.[/EDIT]
__________________
"It better be funny"

Last edited by kel; 02-07-2004 at 09:11 AM..
kel is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46