Research Article

The Logic and Application of Greedy Algorithms

Jierui Zhang*
Chengdu Experimental Foreign Language School (west campus)

* Corresponding author: [email protected]

Abstract

Being easy to implement and offering faster solutions, the greedy algorithms have widely been used in solving combinatorial optimization problems in computer science and many practical applications, such as resource allocation and data compression. This paper aims at analyzing the definitions, theory, and application of greedy algorithms in computer science as well as their logic and efficacy in numerous situations. In this analysis, concepts such as the greedy choice property and optimal substructure are examined as essential to understanding how greedy algorithms operate. The provided analysis mainly assumes prior knowledge of concepts and problems like the Fractional Knapsack problem and the Shortest Path problem solution as well as some practical problems, for example, resource allocation and the exact coin change problem. Analytical data and real applications are used to analyze the performance of greedy algorithms vis-a-vis other categories, such as the dynamic programming paradigm. The results reveal that greedy algorithms have the potential for great efficiency while also being restricted by certain parameters. They are ideal in the following aspects pertaining to computational aspects, that is, speed, ease of implementation, and applicability to large datasets. But they do not necessarily promise strong optimality in certain situations. The conclusion notes that greedy algorithms deserve further applications when the specified conditions are met and states that the effectiveness of these conditions needs to be studied.

Keywords: Greedy algorithms; shortest path; fractional knapsack problem; optimization.
Published: November 8, 2024
DOI: 10.54254/2755-2721/82/20241110
Volume: ACE Vol.82
pp. 154-160
Download PDF

References

  1. Kleinberg, J., Tardos, E. (2015). Algorithm design. Addison-Wesley.
  2. Cormen, T. H., Leiserson, C. E., Rivest, R. L., & Stein, C. (2022). Introduction to algorithms (4th ed.). MIT Press.
  3. Skiena, S. S. (2020). The algorithm design manual (3rd ed.). Springer.
  4. Dasgupta, S., Papadimitriou, C. H., & Vazirani, U. V. (2016). Algorithms. McGraw-[5] Kleinberg, J., & Tardos, E. (2015). Algorithm design. Addison-Wesley.
  5. Feige, U. (2016). On maximizing welfare when utility functions are subadditive. SIAM Journal on Computing, 39(1), 122-142.
  6. Lee, C. P. (2014). Beyond self-sufficiency: A capacity-based classification of greedy algorithms. Theoretical Computer Science, 541, 44-59.
  7. Williamson, D. P., & Shmoys, D. B. (2015). The design of approximation algorithms. Cambridge University Press.
  8. Coffman, E. G., Bruno, J. L., & Rivest, R. L. (2016). Computer and job-shop scheduling. SIAM Review, 18(3), 360-378.
  9. Mirrokni, V., & Vondrák, J. (2016). The complexity of nonmonotone submodular maximization. In Proceedings of the 48th Annual ACM SIGACT Symposium on Theory of Computing, pp. 1128-1137.
  10. Kleinberg, J., Tardos, E., & Papadimitriou, C. H. (2015). Algorithm design. Addison-Wesley.
  11. Iyer, R. K., & Bilmes, J. (2014). Algorithms for approximate minimization of L1 and L∞ mixture losses. In Advances in Neural Information Processing Systems, pp. 635-643.
  12. Park, H. S., & Shim, K. (2016). Parallel greedy algorithms for maximum weighted matching in general graphs. Theoretical Computer Science, 609, 336-348.
  13. Garey, M. R., & Johnson, D. S. (2015). Computers and intractability: A guide to the theory of NP-completeness. W. H. Freeman.
  14. Lattanzi, S., Moseley, B., Suri, S., & Vassilvitskii, S. (2014, September). Filtering: a method for solving graph problems in mapreduce. In International Symposium on Distributed Computing. Springer, Cham, pp. 85-96.
  15. Ahlswede, R., & Winter, A. (2016). Strong converse for identification via quantum channels. IEEE Transactions on Information Theory, 48(3), 569-579.