Dear All,
I have set up ETS to not only store, but also test your program code
submitted for the today lab session. I renamed the submission entry "Final
test sample" and put it in the first place on the submission web page.
In preparation for the tomorrow final test, I very much encourage you to
solve the four problems on page:
http://szit.bme.hu/~szeredi/dpait/dp10s-lab-07-07.txt
and submit their solutions to ETS under the "Final test sample"
heading. Note that ETS is clever enough to accept solutions with an order
different from the "standard solution", e.g:
Expected 1 solution(s): [a-d,b-a,c-a,c-b,c-d,d-a],
Got 1 solution(s): [b-a,c-b,c-a,d-a,c-d,a-d].
>>>>> Test completed, the solution is CORRECT.
You can submit a file containing only solutions for a subset of the
problems -- you will get some error messages for the absent ones...
If you have trouble solving this set of problems, or you have any other
questions, please mail me.
(Note that I have added a hint for the helper predicate incr/3 on the above
web page, which is not there in the printed version you received in the
class.)
Also I have made a mirror of the course web page
http://cs.bme.hu/~szeredi/dpait/
here:
http://szit.bme.hu/~szeredi/dpait/
Tomorrow morning there will be a power outage at the site of the original
web page, and so only the mirror page will be available.
Cheers,
Peter Szeredi
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
> >
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
This is to let you know that on Monday, July 5th, 4pm-5pm there will be a
possibility to take a make up test, of the same form as the mid-course
test. If you take this test, its results will *replace* those of the
mid-course test.
Please send me an email, if you would like to take this test. (I would
suggest that only those of you who had results below 90%, i.e. 18 points,
should participate.)
Cheers,
Peter Szeredi