@christianp @jsiehler I think you also need to handle cases where a pair is swapped but the result is not two entries on the main diagonal. If any selected entry is above and to the right of any other selected entry a swap will lower the product. Further if the lower right is not selected such a swap is guaranteed to exist. Then you are guaranteed a path to the main diagonal, from which no lowering is possible.
=> More informations about this toot | View the thread | More toots from Colinvparker@mathstodon.xyz
=> View christianp@mathstodon.xyz profile | View jsiehler@mathstodon.xyz profile
text/gemini
This content has been proxied by September (3851b).