An open API service indexing awesome lists of open source software.

https://github.com/justehmadsaeed/bruteforcevrecursive-algorithms

Applied three different techniques⚡ to tackle the most efficient solution of finding the Subarray of an array, which holds the maximum sum of the whole array.
https://github.com/justehmadsaeed/bruteforcevrecursive-algorithms

algorithm-challenges algorithms algorithms-implemented brute-force-algorithm cpp hybrid-algorithms recursive-algorithm

Last synced: 27 days ago
JSON representation

Applied three different techniques⚡ to tackle the most efficient solution of finding the Subarray of an array, which holds the maximum sum of the whole array.

Awesome Lists containing this project

README

          

# BruteForce VS Recursive Algorithms

### We applied three techniques⚡ to tackle the problem of finding the Subarray of an array, which holds the maximum sum of the whole array.

- ## Brute Force Algorithm
subArray FIND_MAX_SUBARRAY_BRUTE_FORCE(int *A, int low, int high);
- ## Recursive Algorithm
subArray FIND_MAX_SUBARRAY(int *A, int low, int high);
subArray FIND_MAX_CROSSING_SUBARRAY(int *A, int low, int mid, int high);

- ## Hybrid Recursive-BruteForce Algorithm
subArray HYBRID_FIND_MAX_SUBARRAY(int *A, int low, int high);
subArray FIND_MAX_CROSSING_SUBARRAY(int *A, int low, int mid, int high);
subArray FIND_MAX_SUBARRAY_BRUTE_FORCE(int *A, int low, int high);