SlideShare a Scribd company logo
1 of 13
Download to read offline
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “1
S C I E N C E  P A S S I O N  T E C H N O L O G Y
 www.tugraz.at
On the Usage of
Dependency-based Models
for Spreadsheet Debugging
Birgit Hofer, and Franz Wotawa
Graz University of Technology, Austria
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “2
Outline
Evaluation
1 2 3 4 5
Fault
Localization
Running
Example
Conclusion
Models: existing
and new
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “3
Spreadsheet Fault Localization
 Identifying the cells that could explain
an observed misbehavior
 Techniques
 Spectrum-based Fault Localization
 Model-based Debugging
o Abreu et al. [AHP14]
o Jannach and Schmitz [JS14]
 Localization by repair
[AHP14] R. Abreu, B. Hofer, A. Perez, and F. Wotawa: “Using constraints to diagnose faulty spreadsheets.” Software
Quality Journal, pp. 1–26, 2014.
[JS14] Dietmar Jannach and Thomas Schmitz, “Model-based diagnosis of spreadsheet programs - A constraint-based
debugging approach,” Automated Software Engineering, Springer, pp. 1-40, 2014.
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “4
Running Example
This is a simplified version of the homework/Budgetonespreadsheetfrom the EUSES SpreadsheetCorpus
Should be
78.6%
= D4 / D2
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “5
Running Example – Formula View
This is a simplified version of the homework/Budgetonespreadsheetfrom the EUSES SpreadsheetCorpus
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “6
Running Example – Dependency Graph
This is a simplified version of the homework/Budgetonespreadsheetfrom the EUSES SpreadsheetCorpus
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “7
Model-Based (Software) Debugging
Spreadsheet +
Expect. Output
Constraints
(Model)
Conversion
AB(D2) ˅ behavior(D2)
AB(D3) ˅ behavior(D3)
AB(B4) ˅ behavior(B4)
…
Test case:
D7 == 0,786
B7 == 0,750
…
For single faults:
SUM(AB(D2),AB(D3),…)==1
DiagnosesSolve
 Single Fault:
o {D5}
o {D6}
o {D7}
 Double Fault:
o {D3,D4}
o …
[AHP14] R.Abreu,B. Hofer,A.Perez, and F. Wotawa:“Using constraints to diagnose faulty spreadsheets.”
Software Quality Journal,pp.1–26,2014.
Should be
78,6%
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “8
Value-based Dependency-based
Models for a Spreadsheet’s Behavior
 D2 = B2 + C2
 D3 = D4 / D2
 B4 = B3 * B2
ok(B2) ok(C2)  ok(D2)
ok(D4) ok(D2)  ok(D3)
ok(B3) ok(B2)  ok(B4)
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “9
Value-based Dependency-based
Models for a Spreadsheet’s Behavior
+ exact, few diagnoses
– computation time
– Reals: lacking support
+ fast
+ only Boolean
– many diagnoses
[AFW13] S. Ausserlechner et al.: “The Right Choice
Matters! SMT Solving Substantially
Improves Model-Based Debugging of
Spreadsheets.”QSIC 2013:139-148 Focus of this work
 D2 = B2 + C2
 D3 = D4 / D2
 B4 = B3 * B2
ok(B2) ok(C2)  ok(D2)
ok(D4) ok(D2)  ok(D3)
ok(B3) ok(B2)  ok(B4)
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “10
Improving the Dependency-based Model
 Use ↔ instead of →
ook(B2) ok(C2) ↔ok(D2)
ook(D4) ok(D2) ↔ok(D3)
ook(B3) ok(B2) ↔ok(B4)
 Coincidental correctness
o Conditional like IF-function
o Abstraction function like MIN, MAX, COUNT
o Boolean
o Multiplication by zero
o Power with 0 or 1 as base number or 0 as exponent
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “11
Empirical Evaluation
 Java implementation using
 Apache POI
 Minion Constraint solver
 Spreadsheets from Integer corpus
 Single fault only
94 spreadsheets
63 spreadsheets
 Timeout (20 minutes) for 31 spreadsheets
for Value-based model
31 spreadsheets
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “12
Empirical Evaluation
Model 63 spreadsheets 31 spreadsheets
Number of single fault diagnoses
Value-based 4.0 -
Dependency-based 13.2 45.0
Improved Dep.-based 11.0 38.6
Runtime in ms
Value-based 56,818.8 > 20 minutes
Dependency-based 32.0 187.4
Improved Dep.-based 31.6 164.8
Birgit Hofer, and Franz Wotawa
„On the Usage of Dependency-based Models for Spreadsheet Debugging “13
Conclusion
 Improved dependency-based model
 15 % less diagnoses than original dep.-based model
 <1 second solving time where
value-based model needs > 20 minutes
because of reduction of the domain
− Still more diagnoses than value-based model
+ Real time applicable
+ Arbitrary solver (only Boolean needed)
+ Debugging of spreadsheets containing Real numbers
+ Correct/wrong instead of concrete values for cells

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

2014 07 sems_debugging_models

  • 1. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “1 S C I E N C E  P A S S I O N  T E C H N O L O G Y  www.tugraz.at On the Usage of Dependency-based Models for Spreadsheet Debugging Birgit Hofer, and Franz Wotawa Graz University of Technology, Austria
  • 2. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “2 Outline Evaluation 1 2 3 4 5 Fault Localization Running Example Conclusion Models: existing and new
  • 3. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “3 Spreadsheet Fault Localization  Identifying the cells that could explain an observed misbehavior  Techniques  Spectrum-based Fault Localization  Model-based Debugging o Abreu et al. [AHP14] o Jannach and Schmitz [JS14]  Localization by repair [AHP14] R. Abreu, B. Hofer, A. Perez, and F. Wotawa: “Using constraints to diagnose faulty spreadsheets.” Software Quality Journal, pp. 1–26, 2014. [JS14] Dietmar Jannach and Thomas Schmitz, “Model-based diagnosis of spreadsheet programs - A constraint-based debugging approach,” Automated Software Engineering, Springer, pp. 1-40, 2014.
  • 4. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “4 Running Example This is a simplified version of the homework/Budgetonespreadsheetfrom the EUSES SpreadsheetCorpus Should be 78.6% = D4 / D2
  • 5. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “5 Running Example – Formula View This is a simplified version of the homework/Budgetonespreadsheetfrom the EUSES SpreadsheetCorpus
  • 6. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “6 Running Example – Dependency Graph This is a simplified version of the homework/Budgetonespreadsheetfrom the EUSES SpreadsheetCorpus
  • 7. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “7 Model-Based (Software) Debugging Spreadsheet + Expect. Output Constraints (Model) Conversion AB(D2) ˅ behavior(D2) AB(D3) ˅ behavior(D3) AB(B4) ˅ behavior(B4) … Test case: D7 == 0,786 B7 == 0,750 … For single faults: SUM(AB(D2),AB(D3),…)==1 DiagnosesSolve  Single Fault: o {D5} o {D6} o {D7}  Double Fault: o {D3,D4} o … [AHP14] R.Abreu,B. Hofer,A.Perez, and F. Wotawa:“Using constraints to diagnose faulty spreadsheets.” Software Quality Journal,pp.1–26,2014. Should be 78,6%
  • 8. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “8 Value-based Dependency-based Models for a Spreadsheet’s Behavior  D2 = B2 + C2  D3 = D4 / D2  B4 = B3 * B2 ok(B2) ok(C2)  ok(D2) ok(D4) ok(D2)  ok(D3) ok(B3) ok(B2)  ok(B4)
  • 9. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “9 Value-based Dependency-based Models for a Spreadsheet’s Behavior + exact, few diagnoses – computation time – Reals: lacking support + fast + only Boolean – many diagnoses [AFW13] S. Ausserlechner et al.: “The Right Choice Matters! SMT Solving Substantially Improves Model-Based Debugging of Spreadsheets.”QSIC 2013:139-148 Focus of this work  D2 = B2 + C2  D3 = D4 / D2  B4 = B3 * B2 ok(B2) ok(C2)  ok(D2) ok(D4) ok(D2)  ok(D3) ok(B3) ok(B2)  ok(B4)
  • 10. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “10 Improving the Dependency-based Model  Use ↔ instead of → ook(B2) ok(C2) ↔ok(D2) ook(D4) ok(D2) ↔ok(D3) ook(B3) ok(B2) ↔ok(B4)  Coincidental correctness o Conditional like IF-function o Abstraction function like MIN, MAX, COUNT o Boolean o Multiplication by zero o Power with 0 or 1 as base number or 0 as exponent
  • 11. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “11 Empirical Evaluation  Java implementation using  Apache POI  Minion Constraint solver  Spreadsheets from Integer corpus  Single fault only 94 spreadsheets 63 spreadsheets  Timeout (20 minutes) for 31 spreadsheets for Value-based model 31 spreadsheets
  • 12. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “12 Empirical Evaluation Model 63 spreadsheets 31 spreadsheets Number of single fault diagnoses Value-based 4.0 - Dependency-based 13.2 45.0 Improved Dep.-based 11.0 38.6 Runtime in ms Value-based 56,818.8 > 20 minutes Dependency-based 32.0 187.4 Improved Dep.-based 31.6 164.8
  • 13. Birgit Hofer, and Franz Wotawa „On the Usage of Dependency-based Models for Spreadsheet Debugging “13 Conclusion  Improved dependency-based model  15 % less diagnoses than original dep.-based model  <1 second solving time where value-based model needs > 20 minutes because of reduction of the domain − Still more diagnoses than value-based model + Real time applicable + Arbitrary solver (only Boolean needed) + Debugging of spreadsheets containing Real numbers + Correct/wrong instead of concrete values for cells