Magic Square Dengan Algen

Masalah Magic Square:

That is the number from 1 to n^2 (n!=2) are to be arranged within a n*n grid, in such a way that the all sums of all rows, all sums of all columns and both sums of the diagonals yield the same value S.

Contoh Solusi magic square 4 x 4



11 13 16  56  7  1  3

2  8  9 12

14  4 15 10

Berikut contoh applet untuk menyelesaikan masalah magic square dengan Algen yang diambil dari http://ls11-www.cs.uni-dortmund.de/people/kursawe/Demos/EvoNet/magic_problem.html.

Pada applet dilakukan sedikit modifikasi pada input banyak kotak dan keluaran solusi. Applet baru di test dengan baik pada komputer yang terinstall java 5 ke atas

http://www.kleq.web.ugm.ac.id/images/program/magicsquare.html

Untuk download kode program pada link berikut

http://www.kleq.web.ugm.ac.id/images/program.tar.gz

catatan: untuk paket evolution penulis tidak mendapatkan kode java(*.java) sehingga yang disertakan cuma bytecode (*.class)..

4 Komentar »

  1. Joshua berkata,

    Magic Square Sempurna Angka 98 oleh Joshua Victor.

    25 22 19 32
    20 31 26 21
    30 17 24 27
    23 28 29 18

    Terima kasih…..

    Jika tidak sempurna mohon lapor ke blogku di Shout Box…

    Hehehehe….

  2. EKO berkata,

    Tolonh Kasih Gw rumus Square yang lebih mudah di phami dungzzz >>>>>>>> Please

  3. adam berkata,

    haha magic square ya??
    12 32 16 88
    15 89 11 33
    90 18 30 10
    31 9 91 17
    dijamin sempurna..!!

  4. jojon berkata,

    kurang lengkap


Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.

Bergabunglah dengan 1.428 pengikut lainnya.