First Pass: (5 1 4 2 8 ) –> (1 5 4 2 8 ), Here, algorithm compares the first two elements, and swaps since 5 > 1. ( 15 4 2 8 ) –> ( 14 5 2 8 ), Swap since 5 > 4 ( 1 45 2 8 ) –> ( 1 42 5 8 ), Swap since 5 > 2 ( 1 4 25 8 ) –> ( 1 4 25 8 ), Now, since these elements are already in order (8 > 5), algorithm does not swap them. Second Pass: (1 4 2 5 8 ) –> (1 4 2 5 8 ) ( 14 2 5 8 ) –> ( 12 4 5 8 ), Swap since 4 > 2 ( 1 24 5 8 ) –> ( 1 24 5 8 ) ( 1 2 45 8 ) –> ( 1 2 45 8 ) Now, the array is already sorted, but our algorithm does not know if it is completed. The algorithm needs onewhole pass withoutany swap to know it is sorted. Third Pass: (1 2 4 5 8 ) –> (1 2 4 5 8 ) ( 12 4 5 8 ) –> ( 12 4 5 8 ) ( 1 24 5 8 ) –> ( 1 24 5 8 ) ( 1 2 45 8 ) –> ( 1 2 45 8 )
What does ‘C’ in LCR stand for?
According to the income recognition policy, when can interest on advances against Term Deposits, NSCs, KVPs, and life insurance policies be taken to the...
What is the provisioning requirement for a standard asset for fund based facilities of Farm Credit to agricultural activities, individual housing loans ...
Infrastructure Debt Funds (IDFs) can be set up as which of the following entities in India?
What does relativism theory assert about moral principles?
If a company makes an offer of securities beyond the one-year validity period of the shelf prospectus, what is required?
Consider a market with a few dominant firms that sell differentiated products and engage in strategic pricing behavior. These firms often react to each ...
A trader carries an average inventory of Rs. 40,000. His inventory turnover ratio is 8 times. If he sells goods at a profit of 20% on Revenue from oper...
Consider the following statements about the Index of Industrial Production (IIP) in India:
1.The IIP is a composite indicator that measures the s...
Under the proposed framework for adoption of an expected loss-based approach for provisioning by banks in India, which of the following is NOT a key req...