SLIDE 12 13
Assumption 2: monotonicity of π
- Weights are stored in β distinct relations π!
- each π! is sorted by attribute π₯!
- Goal: Find top-π with minimal access cost
- get next object in π! sequentially: "sorted" sequential access cost π"#$
- obtain the weight for a specific object in π! : random access (index lookup) cost π%&'(
As Assumption 2: 2: The aggregate function π is mo monotone: π π₯), π₯*, β¦ , π₯β β€ π π₯)
,, π₯* ,, β¦ , π₯β , if π₯! β€ π₯! , for all i
Part 3: tropical semiring (min, sum) is instance
lective di dioid" (i.e. min(a,b) = a or b). π is decomposable: π π₯), π₯*, π₯- = π{π₯), π₯*, π₯-}
id π₯! π! 3 π" 4 π% 6 π& 7 π' 8 π₯" 4 2 8 6 7 π₯% 3 4 1 6 5 sum 10 10 15 18 20 π! id π₯! π! 3 π" 4 π% 6 π& 7 π' 8 π" id π₯" π" 2 π! 4 π& 6 π' 7 π% 8 π% id π₯% π% 1 π! 3 π" 4 π' 5 π& 6
As Assumption 1: 1: Mi Middl ddleware c cost m mode del: we aggregate rankings of other services.
- we only pay for accesses to attribute lists
- 2 types of access: sequential / random
select R1.id, sum(w1,w2,w3) as weight from R1, R2, R3 where R1.id=R2.id and R2.id=R3.id
limit 2