Giter VIP home page Giter VIP logo

maximum-sum-subarray-problem-analysis's Introduction

Maximum-Sum-Subarray-Problem-Different-Implementations

The challenge of finding a contiguous subarray with the biggest sum using a given one-dimensional array is known as the subarray problem. For example, the contiguous subarray with the biggest sum in the array [-2, -3, 4, -1, -2, 1, 5, -3] is [4, 1, -2, 1, 5] and the sum is 7. The problem has the following cases:

  • If the array includes only non-negative values, the problem is solved. the largest subarray will be the entire array.
  • If the array includes only non-positive values, a solution is any subarray of size 1 holding the array's maximum value. We will solve this problem using python with different algorithms like brute force, Divide and conquer and dynamic programming then compares their results.

The algorithm will be analyzed using two methods (Analytical โ€“ Empirical). In the Empirical Method we will rely on two testing method:

  • timeit Library: to calculate the execution time from the start of function call to the end of it.
  • Leetcode: problem solving platform provide test cases and analysis to your algorithm.

For more details and results:

documentation : https://bit.ly/3uQvZJ1

colab live : https://colab.research.google.com/drive/1VaTmQw_9LYHatCtj-guSV4-QHu66q11n?usp=sharing

Project Team Members:

Ali Mohamed - [email protected]

maximum-sum-subarray-problem-analysis's People

Contributors

ahmedissa11 avatar alymohamed20 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.