Bitfortip     Tip Bitcoins as an incentive |  Earn Bitcoins for being helpful

  • Chameleon
  • 21:22 25.10.2016
  • English
  • 0.0002 BTC

Category: Instruction


Is there a use for an algorithm that solves odd magic squares in super speed without math computations, regardless of their size? Where should such an algorithm be posted/submitted to get the right credit and be useful?


Please sign in to answer this question.


10 Answers

  • Feconiz
  • 22:12 26.10.2016

I dont believe such an algorithm would be really used, but if regarding the where it should be submitted, i would say sites like codereview.stackexchange.com would be the fittest,because it cannot only help others and but is easy to get reviewd and upgraded, made better.


Comments

  • Chameleon: Thank you for your answer but Code Review is about improving existing, working code. My algorithm can be coded in any programming language to produce unlimited magic squares and being an algorithm, cannot be submitted there.
  • Feconiz: yeah but you could maybe write it in a language and ask people to translate it to other languages.....i dont know.....i think its your best bet.......
  • Chameleon: Thank you but you probably didn't get the question, I am no asking to check my code or any code for that matter.
  • shivamraniwal
  • 07:50 27.10.2016

. Is there a use for an algorithm that solves odd magic


Comments

  • Chameleon: This is an answer?
  • Tumic
  • 10:08 29.10.2016

I think there is one look for it on wikipedia.


Comments

  • Chameleon: If I could find the answer to my two questions I would't post here, but thanks
  • Anuroop Mishra
  • 20:51 29.10.2016

ya


Comments

  • Chameleon: yo
  • v1veks1nha
  • 11:11 30.10.2016

The most popular and most well-known method for creating odd magic squares was first published by Simon de la Loubère (1642-1729)
Attaching here the link- http://www.1728.org/magicsq1.htm
It might get you the way to find the solution


Comments

  • Chameleon: Thank you for your reply. While very interessting, I have found it before together with many similar pages with info in the algo. My problem is WHERE to submit such an algo officialy, which is the responsible organization/institution for it?
  • Gaby
  • 14:39 30.10.2016

Wikipedia might be a good option for you.

  • nwfella
  • 16:50 30.10.2016

Try giving this a go perhaps:

def is_magic(square):
"""Determine whether square is magic and print a message."""
for x in square:
for y in range(3):
if sum(x) == sum (square[y][y] for y in range(3)):
if sum(x) == sum(x[y] for x in square):
checks1 = 'Is a magic Square'
else:
checks1= 'Is not a magic Square'
print("Square is", checks1)

  • NeoGamerPro
  • 17:29 18.11.2016

I dont believe such an algorithm would be really used, but if regarding the where it should be submitted, i would say sites like codereview.stackexchange.com would be the fittest,because it cannot only help others and but is easy to get reviewd and upgraded, made better.

  • tasnimjasser
  • 19:26 22.12.2016

please check this link:
https://rosettacode.org/wiki/Magic_squares_of_odd_order


- or -
- or -

Out of Bitcoins?

After purchasing from paxful, transfer a
small amount to your bitfortip bitcoin
address to be able to post an inquiry.