20 likes | 176 Views
All Equations for Cost Estimation. CUu = b (worst case) b/2 (average case). CUn = b CUr = b CUpu = b CUps = b log (b) + b CSu = log(b) CSn = log(b) + é s/bf ù - 1 CSr = log(b) + b/2 CSpu = b CSps = b CBu = L+1 CBn = L+ ( é s / ( é m/2 ù -1) ù - 1) + s CBr = L+ b L /2 + r/2
E N D
All Equations for Cost Estimation • CUu = b (worst case) b/2 (average case). • CUn = b • CUr = b • CUpu = b • CUps = b log (b) + b • CSu = log(b) • CSn = log(b) + és/bf ù - 1 • CSr = log(b) + b/2 • CSpu = b • CSps = b • CBu = L+1 • CBn = L+ (és / (ém/2 ù -1) ù - 1) + s • CBr = L+ bL/2 + r/2 • CBpu = L + bL + r • CBps = L + bL + r • CBPu = L • CBPn = L+ (és / (ém/2 ù -1) ù - 1) • CBPr = L+ bL/2 • CBPpu = L + bL • CBPps = L + bL • CHu = 1+1 = 2 • CHn = 1+s • CHr = NA • CHpu = #bins + r • CHps = NA • CCu = log(bR+bS) • CCn = log(bR+bS) + és/bf ù - 1 • CCr = log(bR+bS) + (bR+bS)/2 • CCpu = bR+bS • CCps = bR+bS • CJ1 = bR + bR * bS • CJ2 = bR + rR * (Ls+ (éss / (éms/2ù -1) ù - 1) + ss) • CJ3 = bR + bS [for clustered files] Need: L <= logém/2ù[(n+1)/2] + 1 m: (m-1)|Key| + (m-1)|data ptr| + (m)|child ptr| <= Block Size bL = ér / (ém/2 ù -1) ù