Aug. 3, 2023, 4:19 a.m. | Jarom Hulet

Towards Data Science - Medium towardsdatascience.com

How Bad Is Being Greedy?

Exploring a greedy solution to the stock cutting problem

Contents

  1. Motivation of the stock cutting problem
  2. Quick overview of NP-Hard problems
  3. Encoding the stock cutting problem into Python
  4. The greedy algorithm
  5. Comparison to exhaustive search in low n-space
  6. Comparison to random search in higher n-space
  7. Conclusion

Motivation of the stock cutting problem

I’m a data scientist by trade. While my data science skills are very important at work (by definition), I find that data science …

data data science data scientist greedy-algorithms heuristics low optimization overview programming random search solution stock trade

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Business Data Scientist, gTech Ads

@ Google | Mexico City, CDMX, Mexico

Lead, Data Analytics Operations

@ Zocdoc | Pune, Maharashtra, India