| RAIN |
A random integer number in the range of. |
| NOR |
Number of rows in a solution (. |
|
First random position number. |
|
Second random position number (. |
|
Number of used (non-empty) cells on the row. |
|
The value on the column and row. |
|
The value on the column and row. |
| STR |
A set to store random numbers. |
| 1. |
Generate an integer random number (RAIN) on the ; |
| 2. |
Preserve the first RAIN columns; |
| 3. |
FortoNORdo
|
| 4. |
Empty the set STR; |
| 5. |
Choose a random position ( in the range ; |
| 6. |
Add to the set STR; |
| 7. |
Choose a random position ( in the range ; |
| 8. |
Ifdo
|
| 9. |
Swap the and ; |
| 10. |
End if
|
| 11. |
End For |
|
Output: A new feasible solution. |