SoftDesk Support
Project tracking REST API.
Invest with algorithms
This program implements two algorithmic approaches to solve the knapsack problem: it calculates the most profitable stock portfolio possible for a maximum budget of 500 EUR (use case for the fictional company AlgoInvest&Trade).
Exhaustive brute force - Explores every possible stock combination to guarantee the optimal profit, at the cost of exponential runtime (O(2^n)).
Dynamic programming - Optimized knapsack-style algorithm, much faster (approx. O(n * W)), recommended once the list exceeds about 20 assets and using memoization to avoid redundant calculations.
Invalid data report - Optional mode that detects and reports corrupted or unusable data in the provided datasets (for example negative costs or profits, missing values, and more).
Understand how the knapsack algorithm is constructed
Big O notation, brute force, dynamic programming
Tool
Tool
Tool
Tool
Tool
Language
Let's discuss how I can help you with your next project