About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
November 2023 - Solution
November 2023 Solution:
# Solution The optimal number of steps possible is 35. One way to obtain this minimum is the sequence[12, 11, 10, 9, 5, 6, 2, 3, 4, 8, 7, 10, 15, 12, 11, 7, 8, 4, 10, 15, 9, 5, 13, 14, 5, 2, 3, 10,Leading from
15, 3, 6, 13, 2, 9, 12]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0to
1 10 15 4 13 6 3 8 2 9 12 7 14 5 0 11
A common method for solving this problem is using the A* algorithm. A more exhustive approach finds all possible 4x4 magic sqaures (7040 in total) and searching for a path from the initial boards to one of them. Vladimir Volevich suggested optimizing this method by utilizing "meet in the middle" tactic, expanding simultaneously the sets of positions reachable from the initial states and positions reachable from the magic squares and searching for a common element. This ensures none of the sets grow too much out of control, making the search feasible.