Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Latest commit

 

History

History
15 lines (9 loc) · 586 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 586 Bytes

AlgoInvest-Trade

Description

A quick project regarding algorithms and complexity. Written in Python.

The problem is a 0-1 knapsack problem.

  • bruteforce.py explores all possible combinations of actions across the dataset. Complexity 0(2^n).

  • optimized.py offers the classic resolution by building a m(0...n, 0...W) profit matrix maximizing gain. Greedy approximation is also available, to compare results and discuss its pros and cons.

Installation

Clone in the directory of your choice : git clone https://github.com/mjeammet/OCP7_AlgoInvest-Trade.git