1 / 20

Distributed Database Management Systems

Distributed Database Management Systems. Lecture 18. In the previous lecture. Continue with VF Information Requirement Attribute affinities. In this Lecture. Continue with VF Global Affinity Measure Bond Energy Algorithm. n. n. aff(A i , A j ) [aff(A i , A j-1 ) + aff(A i , A j+1 )

etan
Download Presentation

Distributed Database Management Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Distributed Database Management Systems Lecture 18

  2. In the previous lecture • Continue with VF • Information Requirement • Attribute affinities Virtual University of Pakistan

  3. In this Lecture • Continue with VF • Global Affinity Measure • Bond Energy Algorithm Virtual University of Pakistan

  4. n n aff(Ai, Aj) [aff(Ai, Aj-1) + aff(Ai, Aj+1) + aff(Ai-1, Aj) + aff(Ai+1, Aj) ] AM = ∑ ∑ i = 1 j = 1 Virtual University of Pakistan

  5. The AA is symmetric so Virtual University of Pakistan

  6. n n n aff(Ai, Aj) [aff(Ai, Aj-1) + aff(Ai, Aj+1) + aff(Ai-1, Aj) + aff(Ai+1, Aj) ] AM = ∑ ∑ AM = ∑ bond(Aj, Aj-1) +bond(Aj, Aj+1) i = 1 j = 1 j = 1 n n n n ∑ AM = ∑ bond(Ax, Ay) = ∑ ∑ aff(Az, Ax)aff(Az, Ay) aff(Ai, Aj) aff(Ai, Aj+1) aff(Ai, Aj) aff(Ai, Aj-1) + i = 1 j = 1 i = 1 z = 1 Let Rather than taking.. We take only.. Virtual University of Pakistan

  7. n AM = ∑ bond(Aj, Aj-1) +bond(Aj, Aj+1) J = 1 j = 1 Virtual University of Pakistan

  8. n AM = ∑ bond(Aj, Aj-1) +bond(Aj, Aj+1) J = 2 j = 1 Virtual University of Pakistan

  9. n AM = ∑ bond(Aj, Aj-1) +bond(Aj, Aj+1) J = 4 j = 1 Virtual University of Pakistan

  10. Approach for VF • Find the combination that has the maximum Affinity Measure • It will represent best grouping among attributes Virtual University of Pakistan

  11. We can find all possible AMs or • We can use the BEA (Bond Energy Algorithm) Virtual University of Pakistan

  12. Bond Energy Algorithm AM1 AM2 AM3 A1, A2, …, Ai-1, Ai, Aj, Aj+1, ……, An AMold = AM1 + AM2+ AM3 AM2 involves Bond(Ai, Aj) twice Virtual University of Pakistan

  13. BEA A1, A2, …, Ai-1, Ai, Ak, Aj, Aj+1, ……, An AM1 AM2 AM3 AMnew = AM1 + AM2+ AM3 AM2 involves Bond(Ai, Ak) and Bond(Ak, Aj) twice Virtual University of Pakistan

  14. BEA Contribution cont(Ai, Ak, Aj) is the contribution in AM when placing Ak between Ai and Aj Cont(Ai, Ak, Aj) = AMnew- AMold = 2Bond(Ai,Ak) + 2Bond(Aj, Ak) – 2Bond(Ai, Aj) Virtual University of Pakistan

  15. Steps in BEA Virtual University of Pakistan

  16. Input: The AA matrix • Output: The clustered affinity matrix CA which is a permutation of AA • Initialization: Place and fix one of the columns of AA in CA. • Iteration: Place the remaining n-i columns in the remaining i+1 positions in the CA matrix. For each column, choose the placement that makes the most contribution to the global affinity measure. • Row order: Order the rows according to the column ordering. Virtual University of Pakistan

  17. Bond Energy Algorithm Virtual University of Pakistan

  18. Input AA • Output CA • Begin CA (•, 1) ← AA (•, 1) CA (•, 2) ← AA (•, 2) Index ← 3 Virtual University of Pakistan

  19. While index ≤ n do Begin For I from 1 to index –1 by 1 do calculate cont(Ai-1, Aindex, Ai) end-for Calculate cont(Aindex-1, Aindex, Aindex+1) Loc ← placement given by maximum cont value For j from index to loc by –1 do CA (•, j) ← AA (•, j-1) end-for CA (•, loc) ←AA (•, index) Index ← index + 1 End-while Order the rows according to relative order of columns End {BEA} Virtual University of Pakistan

  20. Thanks Virtual University of Pakistan

More Related