Yang Li <yli2(a)smith.edu> writes:
Dear Professor Szeredi,
When I run my sudoku solver, the solution displayed to my console seems to
be abbreviated. For instance, X should be a 25 by 25 grid, but I got the
following output:
X =
[[9,21,6,19,16,2,18,10,8|...],[7,12,14,10,15,24,16,22,17|...],[18,5,17,4,8,25,21,6|...],[24,3,13,1,2,4,23|...],[25,22,23,20,11,1|...],[2,16,3,14,7|...],[20,9,15,21|...],[11,17,24|...],[12,10|...],[5|...]|...]
? ;
Is there a way to view the complete solution?
Yes, after the ? you can issue commands, e.g. '<n', n > 0 sets print depth
to n,
while '<0' sets it to infinity. See the example below.
Best,
Peter Szeredi
---------------------------------------------------------------------------
| ?- length(L, 20).
L = [_A,_B,_C,_D,_E,_F,_G,_H,_I,_J|...] ? h
Top-level options:
RET y no more choices
; n more choices
b break
< reset printdepth
< <n> set printdepth
^ reset subterm
^ <n> set subterm
? h print this information
? < 15
L = [_A,_B,_C,_D,_E,_F,_G,_H,_I,_J,_K,_L,_M,_N,_O|...] ? <0
L = [_A,_B,_C,_D,_E,_F,_G,_H,_I,_J,_K,_L,_M,_N,_O,_P,_Q,_R,_S,_T] ? ;
no
% source_info
| ?-
Thank you.
Yang
On Tue, Jul 6, 2010 at 3:39 PM, Peter Szeredi <szeredi(a)cs.bme.hu> wrote:
> Dear All,
>
> You can now submit your solution of Assigment 2 to ETS.
> A hints page and the tests are available from the homepage
>
http://www.cs.bme.hu/~szeredi/dpait/
>
> If you still have problems, we can discuss them in class tomorrow (or send
> an email, right away).
>
> Cheers,
>
> Peter Szeredi
> _______________________________________________
> Dpait-l mailing list
> Dpait-l(a)cs.bme.hu
>
https://www.cs.bme.hu/mailman/listinfo/dpait-l
>