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 22:30
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
Use a software program or a graphing utility with matrix capabilities to solve the system of linear equations using an inverse matrix. x1 + 2x2 − x3 + 3x4 − x5 = 6 x1 − 3x2 + x3 + 2x4 − x5 = −6 2x1 + x2 + x3 − 3x4 + x5 = 3 x1 − x2 + 2x3 + x4 − x5 = −3 2x1 + x2 − x3 + 2x4 + x5 = 5
Answers: 3
question
Computers and Technology, 24.06.2019 11:30
What does the https: // mean when you type in a website
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
History, 16.09.2019 18:10