Skip to content
Surf Wiki
Save to docs
technology/algorithms

From Surf Wiki (app.surf) — the open knowledge base

Empirical algorithmics

Use of empirical methods to study algorithms


Summary

Use of empirical methods to study algorithms

In computer science, empirical algorithmics (or experimental algorithmics) is the practice of using empirical methods to study the behavior of algorithms. The practice combines algorithm development and experimentation: algorithms are not just designed, but also implemented and tested in a variety of situations. In this process, an initial design of an algorithm is analyzed so that the algorithm may be developed in a stepwise manner.

Overview

Methods from empirical algorithmics complement theoretical methods for the analysis of algorithms. Through the principled application of empirical methods, particularly from statistics, it is often possible to obtain insights into the behavior of algorithms such as high-performance heuristic algorithms for hard combinatorial problems that are (currently) inaccessible to theoretical analysis. Empirical methods can also be used to achieve substantial improvements in algorithmic efficiency.

American computer scientist Catherine McGeoch identifies two main branches of empirical algorithmics: the first (known as empirical analysis) deals with the analysis and characterization of the behavior of algorithms, and the second (known as algorithm design or algorithm engineering) is focused on empirical methods for improving the performance of algorithms. The former often relies on techniques and tools from statistics, while the latter is based on approaches from statistics, machine learning and optimization. Dynamic analysis tools, typically performance profilers, are commonly used when applying empirical methods for the selection and refinement of algorithms of various types for use in various contexts.

Research in empirical algorithmics is published in several journals, including the ACM Journal on Experimental Algorithmics (JEA) and the Journal of Artificial Intelligence Research (JAIR). Besides Catherine McGeoch, well-known researchers in empirical algorithmics include Bernard Moret, Giuseppe F. Italiano, Holger H. Hoos, David S. Johnson, and Roberto Battiti.

Performance profiling in the design of complex algorithms

In the absence of empirical algorithmics, analyzing the complexity of an algorithm can involve various theoretical methods applicable to various situations in which the algorithm may be used. Memory and cache considerations are often significant factors to be considered in the theoretical choice of a complex algorithm, or the approach to its optimization, for a given purpose. Performance profiling is a dynamic program analysis technique typically used for finding and analyzing bottlenecks in an entire application's code or for analyzing an entire application to identify poorly performing code. A profiler can reveal the code most relevant to an application's performance issues.

A profiler may help to determine when to choose one algorithm over another in a particular situation. When an individual algorithm is profiled, as with complexity analysis, memory and cache considerations are often more significant than instruction counts or clock cycles; however, the profiler's findings can be considered in light of how the algorithm accesses data rather than the number of instructions it uses.

Profiling may provide intuitive insight into an algorithm's behavior by revealing performance findings as a visual representation. Performance profiling has been applied, for example, during the development of algorithms for matching wildcards. Early algorithms for matching wildcards, such as Rich Salz' wildmat algorithm, typically relied on recursion, a technique criticized on grounds of performance. The Krauss matching wildcards algorithm was developed based on an attempt to formulate a non-recursive alternative using test cases followed by optimizations suggested via performance profiling, resulting in a new algorithmic strategy conceived in light of the profiling along with other considerations. Profilers that collect data at the level of basic blocks or that rely on hardware assistance provide results that can be accurate enough to assist software developers in optimizing algorithms for a particular computer or situation. Performance profiling can aid developer understanding of the characteristics of complex algorithms applied in complex situations, such as coevolutionary algorithms applied to arbitrary test-based problems, and may help lead to design improvements.

References

References

  1. (2002). "Experimental Algorithmics, From Algorithm Design to Robust and Efficient Software". Springer International Publishing AG.
  2. Moret, Bernard M. E.. (1999). "Towards A Discipline Of Experimental Algorithmics". DIMACS Series in Discrete Mathematics and Theoretical Computer Science.
  3. Hromkovic, Juraj. (2004). "Algorithmics for Hard Problems". Springer International Publishing AG.
  4. (2017). "An Empirical Approach to Algorithm Analysis Resulting in Approximations to Big Theta Time Complexity". Journal of Software.
  5. McGeoch, Catherine. (2012). "A Guide to Experimental Algorithmics". Cambridge University Press.
  6. (2014). "Input-Sensitive Profiling". IEEE Transactions on Software Engineering.
  7. (2002). "High-Performance Algorithm Engineering for Computational Phylogenetics". The Journal of Supercomputing.
  8. (2012). "Algorithmic Profiling". ACM Digital Library.
  9. (2011). "On experimental algorithmics: an interview with Catherine McGeoch and Bernard Moret". ACM Digital Library.
  10. Grzegorz, Mirek. (2018). "Big-O Ambiguity". performant code_.
  11. Kölker, Jonas. (2009). "When does Big-O notation fail?". [[Stack Overflow]].
  12. Lemire, Daniel. (2013). "Big-O notation and real-world performance". WordPress.
  13. (2018). "Finding Application Bottlenecks". JetBrains.
  14. Shmeltzer, Shay. (2005). "Locating Bottlenecks in Your Code with the Event Profiler". Oracle Corp..
  15. (2015). "Proceedings of the 2015 International Symposium on Software Testing and Analysis". ACM Digital Library.
  16. (2018). "Performance & Memory Profiling and Code Coverage". SmartBear Software.
  17. Janssen, Thorben. (2017). "11 Simple Java Performance Tuning Tips". Stackify Developer Tips, Tricks and Resources.
  18. (2008). "Real World Haskell". O'Reilly Media.
  19. Linden, Doug. (2007). "Profiling and Optimization". Second Life Wiki.
  20. Pattis, Richard E.. (2007). "Analysis of Algorithms, Advanced Programming/Practicum, 15-200". School of Computer Science, Carnegie Mellon University.
  21. Wickham, Hadley. (2014). "Optimising code". Chapman and Hall/CRC.
  22. Salz, Rich. (1991). "wildmat.c". [[GitHub]].
  23. Cantatore, Alessandro. (2003). "Wildcard matching algorithms".
  24. Krauss, Kirk. (2008). "Matching Wildcards: An Algorithm".
  25. Krauss, Kirk. (2014). "Matching Wildcards: An Empirical Way to Tame an Algorithm".
  26. Krauss, Kirk. (2018). "Matching Wildcards: An Improved Algorithm for Big Data". Develop for Performance.
  27. Grehan, Rick. (2005). "Code Profilers: Choosing a Tool for Analyzing Performance". Freescale Semiconductor.
  28. Hough, Richard. (2006). "Cycle-Accurate Microarchitecture Performance Evaluation". Georgia Institute of Technology.
  29. (2013). "Program Analysis with Dynamic Instrumentation Pin and Performance Tools". IEEE Xplore Digital Library.
  30. (2016). "The performance profile: A multi-criteria performance evaluation method for test-based problems". De Gruyter.
Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Empirical algorithmics — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report