{"id":20042709,"url":"https://github.com/webcpu/findsymmetricpoems","last_synced_at":"2025-07-08T20:38:23.986Z","repository":{"id":72215775,"uuid":"384719023","full_name":"webcpu/FindSymmetricPoems","owner":"webcpu","description":"Find Symmetric Poems","archived":false,"fork":false,"pushed_at":"2023-04-14T21:33:15.000Z","size":2629,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T19:35:54.339Z","etag":null,"topics":["golang","magic-square","matrix","parallel-programming","poetry","symmetric-matrix"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webcpu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-10T14:36:48.000Z","updated_at":"2021-07-10T19:32:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e57bc73-19ec-44d3-8a19-eeef523dac1f","html_url":"https://github.com/webcpu/FindSymmetricPoems","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcpu%2FFindSymmetricPoems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcpu%2FFindSymmetricPoems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcpu%2FFindSymmetricPoems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcpu%2FFindSymmetricPoems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webcpu","download_url":"https://codeload.github.com/webcpu/FindSymmetricPoems/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241470710,"owners_count":19968091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","magic-square","matrix","parallel-programming","poetry","symmetric-matrix"],"created_at":"2024-11-13T10:52:57.202Z","updated_at":"2025-03-02T07:18:49.908Z","avatar_url":"https://github.com/webcpu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Find Symmetric Poems\n\n![](https://github.com/LingDong-/magic-square-poems/raw/main/illustration.svg)\n\nI got inspirations from https://github.com/LingDong-/magic-square-poems .\n\n\"Observe the above 5x5 matrix of Chinese characters: when read horizontally, it consists of five lines from five different poems, and so does it when read vertically, of the exact same lines. \"\n\nI prefer symmetric matrix but not magic matrix, because I think it's a symmetric matrix.\nObserve that when a matrix is symmetric, as in these cases, the matrix is equal to its transpose.\n\nTo solve this problem, I implemented a quicker parallel alogorithm. It only takes 36 seconds to find the symmetric poems.\n\n*Run*\n```\ngo run main.go\n```\n\n*Output*\n```\n❯ go run main.go               \n风月清江夜\n月出夜山深\n清夜方归来\n江山归谢客\n夜深来客稀\n\n心如七十人\n如何十年间\n七十未成事\n十年成底事\n人间事事慵\n\n[[风月清江夜 月出夜山深 清夜方归来 江山归谢客 夜深来客稀] [心如七十人 如何十年间 七十未成事 十年成底事 人间事事慵]]\n\n~/go/src/FindSymmetricPoems 36s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebcpu%2Ffindsymmetricpoems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebcpu%2Ffindsymmetricpoems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebcpu%2Ffindsymmetricpoems/lists"}