aggregate constraints
play

Aggregate Constraints Sergio Flesca, Filippo Furfaro and Francesco - PowerPoint PPT Presentation

Preferred Database Repairs under Aggregate Constraints Sergio Flesca, Filippo Furfaro and Francesco Parisi D.E.I.S. University of Calabria {flesca, furfaro, fparisi}@deis.unical.it International Conference on Scalable Uncertainty Management


  1. Preferred Database Repairs under Aggregate Constraints Sergio Flesca, Filippo Furfaro and Francesco Parisi D.E.I.S. University of Calabria {flesca, furfaro, fparisi}@deis.unical.it International Conference on Scalable Uncertainty Management (SUM) Oct 10-12, 2007, Washington DC Area

  2. Inconsistent Numerical databases • Data inconsistency can arise in several scenarios – Data integration, reconciliation, – errors in acquiring data (mistakes in transcription, OCR tools, sensors, etc.) Balance sheet context A cash budget portion A digitized cash budget Receipts Receipts cash sales 2200 cash sales 2200 OCR tool Year 2006 Year 2006 receivables 250 receivables 650 total cash 2450 total cash 2450 • The original data were consistent: 2200 + 250 = 2450 , but a symbol recognition error occurred during the digitizing phase • In this context “ traditional ” forms of constraint do not suffice to guarantee consistency Aggregate Constraints

  3. Repairing numerical data • Several consistent versions can be obtained starting from the inconsistent cash budget A digitized cash budget Receipts Receipts cash sales 2200 cash sales X Year 2006 Year 2006 Repair receivables 650 receivables Y total cash 2450 total cash Z X, Y, Z such that X+Y=Z • Some repairs are more reasonable than others • Card-minimal Repair: – A “minimal way” for restoring consistency in databases change the minimum number of original values

  4. Card-minimal Repairs • Several consistent versions can be obtained starting from the inconsistent cash budget R 1 A digitized cash budget Receipts Receipts cash sales 2200 cash sales X=1800 Year 2006 Year 2006 Repair receivables 650 receivables Y=650 total cash 2450 total cash Z=2450 X, Y, Z such that X+Y=Z • Some repairs are more reasonable than others • Card-minimal Repair: – A “minimal way” for restoring consistency in databases change the minimum number of original values

  5. Card-minimal Repairs • Several consistent versions can be obtained starting from the inconsistent cash budget R 2 A digitized cash budget Receipts Receipts cash sales 2200 cash sales X=2200 Year 2006 Year 2006 Repair receivables 650 receivables Y=250 total cash 2450 total cash Z=2450 X, Y, Z such that X+Y=Z • Some repairs are more reasonable than others • Card-minimal Repair: – A “minimal way” for restoring consistency in databases change the minimum number of original values

  6. Card-minimal Repairs • Several consistent versions can be obtained starting from the inconsistent cash budget R 3 A digitized cash budget Receipts Receipts cash sales 2200 cash sales X=2200 Year 2006 Year 2006 Repair receivables 650 receivables Y=650 total cash 2450 total cash Z=2850 X, Y, Z such that X+Y=Z • Some repairs are more reasonable than others • Card-minimal Repair: – A “minimal way” for restoring consistency in databases change the minimum number of original values

  7. Preferred Repairs • In general, there may be several card-minimal repairs for a database violating a given set of aggregate constraints • Well-established information on the application context can be exploited to choose the most reasonable repairs among those having minimum cardinality – We can exploit data regarding the preceding years The value of cash sales never was Cash Sales Receivables Total Cash less than 2000 3000 2500 The value of cash 2000 sales for the year 2006 is not likely to be 1500 less than 2000 1000 500 This condition can be 0 interpreted as 2001 2002 2003 2004 2005 weak constraint

  8. Preferred Repairs • In general, there may be several card-minimal repairs for a database violating a given set of aggregate constraints • Well-established information on the application context can be exploited to choose the most reasonable repairs among those having minimum cardinality – We can exploit data regarding the preceding years Cash Sales Receivables Total Cash The value of receivables never was 3000 greater than 400 2500 2000 1500 Weak constraint: 1000 It is likely that 500 receivables are less 0 than or equal to 400 2001 2002 2003 2004 2005

  9. Preferred Repairs • In general, there may be several card-minimal repairs for a database violating a given set of aggregate constraints • Well-established information on the application context can be exploited to choose the most reasonable repairs among those having minimum cardinality – We can exploit data regarding the preceding years • In contrast with (strong) aggregate constraints, the satisfaction of weak constraints is not mandatory • Weak constraints can be exploited for defining a repairing technique where inconsistent data are fixed in the “most likely” way The preferred repairs are card-minimal repairs satisfying as many weak constraints as possible

  10. Preferred Repairs • In general, there may be several card-minimal repairs for a database violating a given set of aggregate constraints • Well-established information on the application context can be exploited to choose the most reasonable repairs among those having minimum cardinality – We can exploit data regarding the preceding years Card-Minimal Repair Cash Sales Receivables Total Cash R 1 3000 2500 2000 1500 2 weak constraints 1000 violated 500 0 2001 2002 2003 2004 2005 2006

  11. Preferred Repairs • In general, there may be several card-minimal repairs for a database violating a given set of aggregate constraints • Well-established information on the application context can be exploited to choose the most reasonable repairs among those having minimum cardinality – We can exploit data regarding the preceding years Card-Minimal Repair Cash Sales Receivables Total Cash R 2 3000 2500 no weak constraints 2000 violated 1500 1000 R 2 is preferred to R 1 500 (R 2 >R 1 ) 0 2001 2002 2003 2004 2005 2006

  12. Preferred Repairs • In general, there may be several card-minimal repairs for a database violating a given set of aggregate constraints • Well-established information on the application context can be exploited to choose the most reasonable repairs among those having minimum cardinality – We can exploit data regarding the preceding years Card-Minimal Repair Cash Sales Receivables Total Cash R 3 3000 1 weak constraint 2500 violated 2000 1500 1000 500 R 2 >R 3 >R 1 0 2001 2002 2003 2004 2005 2006

  13. Outline • Aggregate constraints • Repairing strategy • Weak Aggregate Constraints • Preferred Repairs • Steady aggregate constraints • Complexity results • Computing preferred repairs • Experimental results • Conclusions

  14. Aggregate constraints • can express constraints like those defined in the context of balance-sheet data where: 1. is a conjunction of atoms 2. is a constant 3. The aggregation formula is the linear combination of aggregation functions Linear combination of attributes with Boolean formula on constants and attributes of R

  15. Example of aggregate constraints • CashBudget(Section,Subsection,Type,Value) 1) Section Subsection Type Value for each section, the sum Receipts beginning cash drv 3000 of all detail items must be Receipts cash sales det 2200 equal to the value of the Receipts receivables det 650 aggregate item Receipts total cash receipts aggr 2450 Disbursements payment of accounts det 1300 Disbursements capital expenditure det 100 Aggregation function: Disbursements long-term financing det 600 Disbursements total disbursements aggr 1000 Balance net cash inflow drv 450 Balance ending cash balance drv 3450 Aggregate constraint:

  16. Example of aggregate constraints • CashBudget(Section,Subsection,Type,Value) 2) Section Subsection Type Value the net cash inflow must be Receipts beginning cash drv 3000 equal to the difference Receipts cash sales det 2200 between total cash receipts Receipts receivables det 650 and total disbursements Receipts total cash receipts aggr 2450 Disbursements payment of accounts det 1300 Disbursements capital expenditure det 100 Aggregation function: Disbursements long-term financing det 600 Disbursements total disbursements aggr 1000 Balance net cash inflow drv 450 Balance ending cash balance drv 3450 Aggregate constraint:

  17. Example of aggregate constraints • CashBudget(Section,Subsection,Type,Value) 3) Section Subsection Type Value the ending cash balance Receipts beginning cash drv 3000 must be equal to the sum of Receipts cash sales det 2200 the beginning cash and the Receipts receivables det 650 net cash inflow Receipts total cash receipts aggr 2450 Disbursements payment of accounts det 1300 Disbursements capital expenditure det 100 Aggregation function: Disbursements long-term financing det 600 Disbursements total disbursements aggr 1000 Balance net cash inflow drv 450 Balance ending cash balance drv 3450 Aggregate constraint:

  18. Outline • Aggregate constraints • Repairing strategy • Weak Aggregate Constraints • Preferred Repairs • Steady aggregate constraints • Complexity results • Computing preferred repairs • Experimental results • Conclusions

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend