4X4 magic square?

View: New views
3 Messages — Rating Filter:   Alert me  

4X4 magic square?

by courses.cs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Anybody knows how to implement a function that finds all the solutions to a 4X4 magic square given a fixed goal sum and an initial grid with some or all cells blank? fun magicsquares(goal,grid) = ...

Re: 4X4 magic square?

by Adam Chlipala-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

courses.cs wrote:
> Anybody knows how to implement a function that finds all the solutions
> to a 4X4 magic square given a fixed goal sum and an initial grid with
> some or all cells blank? fun magicsquares(goal,grid) = ...

It looks like you're asking us to do your homework for you.  You can be
pretty sure you won't find anyone willing to do that.  Try asking your
teacher instead.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Smlnj-list mailing list
Smlnj-list@...
https://lists.sourceforge.net/lists/listinfo/smlnj-list

Re: 4X4 magic square?

by courses.cs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Adam,
Thank you for your answer. How did you know that this is my homework? Wow! You are smart!
I am asking everybody not only you. If you have the answer, just post it else post nothing.
Keep it simple!
Bye.
Adam Chlipala-3 wrote:
courses.cs wrote:
> Anybody knows how to implement a function that finds all the solutions
> to a 4X4 magic square given a fixed goal sum and an initial grid with
> some or all cells blank? fun magicsquares(goal,grid) = ...

It looks like you're asking us to do your homework for you.  You can be
pretty sure you won't find anyone willing to do that.  Try asking your
teacher instead.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Smlnj-list mailing list
Smlnj-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smlnj-list