subject
Computers and Technology, 30.10.2019 02:31 adiaz97

In a previous assignment we worked on an algorithm that produced magic squares of odd order. we avoided generating magic squares of even order because the algorithm for generating them is more complicated. here is a very famous magic square that is featured in the painting melancholia by albrecht durer. 16 3 2 13 5 10 11 8 9 6 7 12 4 15 14 1 in this assignment you will generate onlyten magic squares of order 4 through permutation. the process is straight forward but time consuming. here are the steps: create a 1-d list of integers 1 through 16. permute this list of integers. for each permutation convert the 1-d list into a 2-d list that is 4 x 4. check if that 2-d list is a magic square. if it is, then print it out. stop when you have gone through all the permutations.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:10
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 1
question
Computers and Technology, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
Answers: 1
You know the right answer?
In a previous assignment we worked on an algorithm that produced magic squares of odd order. we avoi...
Questions
question
Mathematics, 22.10.2020 16:01
question
Mathematics, 22.10.2020 16:01
Questions on the website: 13722363