Bank Management is based on the concept of creating and storing customer’s account details. Here the user can perform all the tasks like creating an account, deposit amount, withdraw amount, check balance, view all account holders detail, close an account and modify an account.
Talking about the features of the Bank Management, a user can create an account by providing the name of the account holder, select amount type whether it’s a Saving account or Current account, and providing an initial amount. The account number is auto-generated. Then the user can also deposit and withdraw money just by providing his/her account, then the system displays his/her profile and entering an amount. For certain purposes, he/she can also check for the balance inquiry which displays the account holder’s name with account number type and amount. He/she can also check for all the account holder’s lists. Another feature is that the user can also close their account by providing their account number and he/she can modify their account detail and type if they want to.
- Create an account
- Deposit Funds
- Withdraw Funds
- Check Balance
- View all account holder’s detail
- Close an account
- Modify an account
- Manager Option
- Merge Sort ( Example of Divide And Conquer ) ( O(nlogn) )
- By Age
- By A/C no
- By Name
- Binary Search ( O(nlogn) )
- Just Providing Name If It Is exist Then Show All Detailes.
- if user execute code first time then we have global variable
startPtr
which has only 2 index. - if 2 index full then we allocate double of 2. it means 4.
- so on 2,4,8,16 .....
Just by Using malloc and realloc
- If there is 10 A/C holders and suddenly A/C_No=2 closes their account then if new user come he will automatically allocate A/C no=2. not A/C no=11.
- Time Complexity O(1).
Using Linked List
- I have to include that A/C no in linked list for future create A/C.
- it takes O(n) in worst case.
- At this Time I implimented minimum Currency Problem With ATM.
- here i have 2000,500,200,100,50,20,10,5,1 in currency. and it gives that solution which uses minimum number of currencys.
It is Greedy Method
- Here We have one salesman who is providing home banking.
- So i implimented using TSP so that i can save petrols.
- This approach is native approach by DP. but it takes lot of time.
- this is brute force mathod so it takes O((n-1)!) time which is not polynomial so we are not consider that.
''' But in real world there is no solution for TSP but there is approximation solution '''
- There is 2-approximation and 3/2-approximation.
- For to use this approximation triangular inequality must be true.
- What is Triangular inequality
- if there is 3 node a,b,c. and there is edge between ac ab and bc then cost(ab) + cost(bc) >= cost(ac).
- Steps:-
- Let 0 be the starting and ending point for salesman.
- Construct Minimum Spanning Tree from with 0 as root using Prim’s Algorithm.
- List vertices visited in preorder walk/Depth First Search of the constructed MST and add source node at the end.
- it gives solution of O(polynomial).