User:DAAM2/sandbox

 DAAM2'''is my wiki pageDAAM2 

DIVIDE AND CONQUER: Algorithm: Merge Sort

To sort the entire sequence A[1 .. n], make the initial call to the procedure MERGE-SORT (A, 1, n).

MERGE-SORT (A, p, r)

1.    IF p < r                                                    // Check for base case 2.        THEN q = FLOOR[(p + r)/2]                 // Divide step 3.                MERGE (A, p, q)                          // Conquer step. 4.                MERGE (A, q + 1, r)                     // Conquer step. 5.                MERGE (A, p, q, r)                       // Conquer step.

Just press the "Save changes" button below without changing anything! Doing so will submit your article submission for review. Once you have saved this page you will find a new yellow 'Review waiting' box at the BOTTOM of your submission page. If you have submitted your page previously, either the old pink 'Submission declined' template or the old grey 'Draft' template will still appear at the top of your submission page, but YOU SHOULD IGNORE it. Again, please don't change anything in this text box. Just press the "Save changes" button below. ↓    ↓      ↓     ↓      ↓     ↓      ↓     ↓      ↓     ↓      ↓     ↓      ↓     ↓      ↓     ↓      ↓     ↓      ↓     ↓      ↓     ↓      ↓     ↓      ↓     ↓