Skip to content

feat: add magic square algorithms - #1586

Open
namanhegde018-ux wants to merge 1 commit into
TheAlgorithms:masterfrom
namanhegde018-ux:add-magic-square
Open

feat: add magic square algorithms#1586
namanhegde018-ux wants to merge 1 commit into
TheAlgorithms:masterfrom
namanhegde018-ux:add-magic-square

Conversation

@namanhegde018-ux

Copy link
Copy Markdown

Description of Change

Adds algorithms for constructing normal magic squares for odd, singly-even, and doubly-even orders.

The implementation uses:

  • TURAGAGATI for odd orders
  • SAMPUTAVIDHI for doubly-even orders
  • VISHAMAGARBHA SUTRA for singly-even orders

Includes self-tests for the generated magic squares.

References

No related issue or previous pull request.

Checklist

Notes: Implements three different construction methods for normal magic squares based on the parity of the order.

@namanhegde018-ux

Copy link
Copy Markdown
Author

The algorithm names are intentionally kept in their original form to preserve the historical terminology and give credit to their creators..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant