Post Reply 
Fifteen puzzle solvability, Numworks Python
04-25-2020, 08:58 AM
Post: #14
RE: Fifteen puzzle solvability, Numworks Python
Albert, I don't get the expected results for this data:

a=[11,3,8,1,6,15,10,7,14,2,13,4,12,9,5]

the empty cell is right after 11

the result should be even (52 per my algorithm), but it is odd (11)

the sorted(a) == range(1,n*n) command always returns FALSE, not TRUE

Don
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Fifteen puzzle solvability, Numworks Python - Don Shepherd - 04-25-2020 08:58 AM



User(s) browsing this thread: 1 Guest(s)