SlideShare une entreprise Scribd logo
1  sur  14
Base Agnostic Approximations of Logarithms Josh Woody University of Evansville Presented at MESCON 2011
Overview Motivation Approximation Techniques Applications Conclusions
Motivation Big “Oh” notation Compares growth of functions Common classes are How does 𝑂(𝑛log𝑛)fit?  Compared to 𝑂𝑛1.5 or 𝑂(𝑛)? Other Authors Topic barely addressed in texts   𝑂1, 𝑂𝑛, 𝑂𝑛log𝑛, 𝑂𝑛2, 𝑂(2𝑛)  
Approximation Technique 1 Integration Integrate the log function 𝐹𝑥= 𝑓𝑥𝑑𝑥= log𝑥𝑑𝑥=𝑥𝑙𝑜𝑔 𝑥 −𝑥+𝐶 Note that log x is still present, presenting recursion Did not pursue further  
Approximation Technique 2 Derivation Derive the log function 𝑓′𝑥=1𝑥=𝑥−1  What if we twiddle with the exponent by ±.01 and integrate? 𝑔𝑥=100𝑥0.01−100   
Approximation 2 Results Error at x = 50 is ±4.2% Error grows with increasing x Can be reduced with more significant figures
Approximation Technique 3 Taylor Series Infinite series Reasonable approximation truncates series Argument must be < 1 to converge
Approximation 3 Results Good approximation, even with only 3 terms But approximation only valid for small region
Approximation Technique 4 Chebychev Polynomial Infinite Series Approximates “minimax” properties Peak error is minimized in some interval Slightly better convergence than Taylor
Approximation 4 Results Centered about 0 Can be shifted Really bad approximation outside region of convergence Good approximation inside
Conclusions Infinite series not well suited to task Too much error in portions of number line Derivation attempt is best 𝑔𝑥=100𝑥0.01−100   
Applications Suppose two algorithms run in 𝑂(𝑛log𝑛)and 𝑂(𝑛1.5) Which is faster? Since log 𝑛=𝑜𝑛0.01, the𝑂(𝑛log𝑛 ) algorithm is faster.  
What base is that? Base in this presentation is always e. Base conversion was insignificant portion of work Change of Base formula always sufficient
The End Slides will be posted on JoshWoody.com tonight Questions, Concerns, or Comments?

Contenu connexe

En vedette (6)

phpBB MOD Installers
phpBB MOD InstallersphpBB MOD Installers
phpBB MOD Installers
 
Designing Content for Multiple Devices
Designing Content for Multiple DevicesDesigning Content for Multiple Devices
Designing Content for Multiple Devices
 
Content Strategy Across Connected Devices
Content Strategy Across Connected DevicesContent Strategy Across Connected Devices
Content Strategy Across Connected Devices
 
Pragmatic Principles for Mobile Design
Pragmatic Principles for Mobile DesignPragmatic Principles for Mobile Design
Pragmatic Principles for Mobile Design
 
Mobile Design for Instructional Designers
Mobile Design for Instructional DesignersMobile Design for Instructional Designers
Mobile Design for Instructional Designers
 
Learning, Identity and Social Media
Learning, Identity and Social MediaLearning, Identity and Social Media
Learning, Identity and Social Media
 

Similaire à Mescon logarithms

MachineLearning.ppt
MachineLearning.pptMachineLearning.ppt
MachineLearning.ppt
butest
 
MachineLearning.ppt
MachineLearning.pptMachineLearning.ppt
MachineLearning.ppt
butest
 
MachineLearning.ppt
MachineLearning.pptMachineLearning.ppt
MachineLearning.ppt
butest
 
Mathematicsq3 k-12
Mathematicsq3 k-12Mathematicsq3 k-12
Mathematicsq3 k-12
Lex Lee
 

Similaire à Mescon logarithms (20)

Abductive commonsense reasoning
Abductive commonsense reasoningAbductive commonsense reasoning
Abductive commonsense reasoning
 
Evoknow17 Large Scale Problems in Practice
Evoknow17 Large Scale Problems in PracticeEvoknow17 Large Scale Problems in Practice
Evoknow17 Large Scale Problems in Practice
 
Harnessing Deep Neural Networks with Logic Rules
Harnessing Deep Neural Networks with Logic RulesHarnessing Deep Neural Networks with Logic Rules
Harnessing Deep Neural Networks with Logic Rules
 
MachineLearning.ppt
MachineLearning.pptMachineLearning.ppt
MachineLearning.ppt
 
MachineLearning.ppt
MachineLearning.pptMachineLearning.ppt
MachineLearning.ppt
 
MachineLearning.ppt
MachineLearning.pptMachineLearning.ppt
MachineLearning.ppt
 
T coffee algorithm dissection
T coffee algorithm dissectionT coffee algorithm dissection
T coffee algorithm dissection
 
Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...
Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...
Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...
 
Efficient projections
Efficient projectionsEfficient projections
Efficient projections
 
Efficient projections
Efficient projectionsEfficient projections
Efficient projections
 
Regression with Time Series Data
Regression with Time Series DataRegression with Time Series Data
Regression with Time Series Data
 
DMAIC
DMAICDMAIC
DMAIC
 
Ijmet 10 01_021
Ijmet 10 01_021Ijmet 10 01_021
Ijmet 10 01_021
 
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
 
Mathematicsq3 k-12
Mathematicsq3 k-12Mathematicsq3 k-12
Mathematicsq3 k-12
 
grade 7 Math quarter 3
grade 7 Math quarter 3grade 7 Math quarter 3
grade 7 Math quarter 3
 
Eigenvalues for HIV-1 dynamic model with two delays
Eigenvalues for HIV-1 dynamic model with two delaysEigenvalues for HIV-1 dynamic model with two delays
Eigenvalues for HIV-1 dynamic model with two delays
 
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
Quantitative Methods for Lawyers - Class #22 - Regression Analysis - Part 5
 
Adaptive relevance feedback in information retrieval
Adaptive relevance feedback in information retrievalAdaptive relevance feedback in information retrieval
Adaptive relevance feedback in information retrieval
 
Hands-on Tutorial of Machine Learning in Python
Hands-on Tutorial of Machine Learning in PythonHands-on Tutorial of Machine Learning in Python
Hands-on Tutorial of Machine Learning in Python
 

Dernier

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Dernier (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

Mescon logarithms

  • 1. Base Agnostic Approximations of Logarithms Josh Woody University of Evansville Presented at MESCON 2011
  • 2. Overview Motivation Approximation Techniques Applications Conclusions
  • 3. Motivation Big “Oh” notation Compares growth of functions Common classes are How does 𝑂(𝑛log𝑛)fit? Compared to 𝑂𝑛1.5 or 𝑂(𝑛)? Other Authors Topic barely addressed in texts   𝑂1, 𝑂𝑛, 𝑂𝑛log𝑛, 𝑂𝑛2, 𝑂(2𝑛)  
  • 4. Approximation Technique 1 Integration Integrate the log function 𝐹𝑥= 𝑓𝑥𝑑𝑥= log𝑥𝑑𝑥=𝑥𝑙𝑜𝑔 𝑥 −𝑥+𝐶 Note that log x is still present, presenting recursion Did not pursue further  
  • 5. Approximation Technique 2 Derivation Derive the log function 𝑓′𝑥=1𝑥=𝑥−1  What if we twiddle with the exponent by ±.01 and integrate? 𝑔𝑥=100𝑥0.01−100   
  • 6. Approximation 2 Results Error at x = 50 is ±4.2% Error grows with increasing x Can be reduced with more significant figures
  • 7. Approximation Technique 3 Taylor Series Infinite series Reasonable approximation truncates series Argument must be < 1 to converge
  • 8. Approximation 3 Results Good approximation, even with only 3 terms But approximation only valid for small region
  • 9. Approximation Technique 4 Chebychev Polynomial Infinite Series Approximates “minimax” properties Peak error is minimized in some interval Slightly better convergence than Taylor
  • 10. Approximation 4 Results Centered about 0 Can be shifted Really bad approximation outside region of convergence Good approximation inside
  • 11. Conclusions Infinite series not well suited to task Too much error in portions of number line Derivation attempt is best 𝑔𝑥=100𝑥0.01−100   
  • 12. Applications Suppose two algorithms run in 𝑂(𝑛log𝑛)and 𝑂(𝑛1.5) Which is faster? Since log 𝑛=𝑜𝑛0.01, the𝑂(𝑛log𝑛 ) algorithm is faster.  
  • 13. What base is that? Base in this presentation is always e. Base conversion was insignificant portion of work Change of Base formula always sufficient
  • 14. The End Slides will be posted on JoshWoody.com tonight Questions, Concerns, or Comments?