GithubHelp home page GithubHelp logo

iishreya / cash-sttlement-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shivangisachan20/cash-sttlement-project

0.0 0.0 0.0 6 KB

In Splitwise Cashflow Minimization with help of heap , minimise number of transaction among n people. My project Splitwise Cashflow Minimization inspiration came from using Splitwise App in which keep track of your shared expenses and balances with housemates, trips, groups, friends, and family. For Example, if the following weighted directed graph represents some people and the arrows represent debts between them (Alice owes Bob $20 and Charlie $5, Bob owes Charlie $10, etc. How to pick the first person? To pick the first person, calculate the net amount for every person where net amount is obtained by subtracting all debts (amounts to pay) from all credits (amounts to be paid). Once net amount for every person is evaluated, find two persons with maximum and minimum net amounts. These two persons are the most creditors and debtors. The person with minimum of two is our first person to be settled and removed from list. Let the minimum of two amounts be x. We pay โ€˜xโ€™ amount from the maximum debtor to maximum creditor and settle one person. If x is equal to the maximum debit, then maximum debtor is settled, else maximum creditor is settled.

JavaScript 73.55% CSS 7.03% HTML 19.42%

cash-sttlement-project's Introduction

Hi there ๐Ÿ‘‹

Me in a nutshell:

- reinforcement learning
- Natural Language Proocessing
- Java 
- coding
- cooking
- strong coffee
- chocolates!
- playing the guitar
- reading 
- blogging! 

cash-sttlement-project's People

Contributors

shivangisachan20 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.