I would like to know if it is possible to show the solutions of this problem in a dynamic way with an animated sequence of images that illustrate the various steps of the solution sequence.
In summary I have a nxn table, I would like to show an animation that somehow highlights the various cells according to a sequence determined by a given vector of positions.
for example, make the following sequence “animate” in the 5x5 table
julia> tab=CartesianIndices((1:n,1:n))
5×5 CartesianIndices{2, Tuple{UnitRange{Int64}, UnitRange{Int64}}}:
CartesianIndex(1, 1) CartesianIndex(1, 2) … CartesianIndex(1, 5)
CartesianIndex(2, 1) CartesianIndex(2, 2) CartesianIndex(2, 5)
CartesianIndex(3, 1) CartesianIndex(3, 2) CartesianIndex(3, 5)
CartesianIndex(4, 1) CartesianIndex(4, 2) CartesianIndex(4, 5)
CartesianIndex(5, 1) CartesianIndex(5, 2) CartesianIndex(5, 5)
julia> branch1(init)
552-element Vector{Any}:
CartesianIndex{2}[CartesianIndex(1, 1), CartesianIndex(4, 1), CartesianIndex(4, 4), CartesianIndex(1, 4), CartesianIndex(3, 2), CartesianIndex(3, 5), CartesianIndex(5, 3), CartesianIndex(2, 3), CartesianIndex(4, 5), CartesianIndex(1, 5) … CartesianIndex(2, 1), CartesianIndex(4, 3), CartesianIndex(1, 3), CartesianIndex(3, 1), CartesianIndex(3, 4), CartesianIndex(5, 2), CartesianIndex(2, 2), CartesianIndex(2, 5), CartesianIndex(5, 5), CartesianIndex(3, 3)]