{"id":18320822,"url":"https://github.com/jefferson10147/lettersoup-algorithm","last_synced_at":"2025-04-09T14:29:41.182Z","repository":{"id":53145829,"uuid":"235377159","full_name":"jefferson10147/LetterSoup-Algorithm","owner":"jefferson10147","description":"This java class generates a randomly letter soup  in a matrix of order size*size.","archived":false,"fork":false,"pushed_at":"2021-04-04T15:40:57.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T08:30:53.765Z","etag":null,"topics":["algorithm","java","matrix"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jefferson10147.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-21T15:37:31.000Z","updated_at":"2021-04-04T15:40:59.000Z","dependencies_parsed_at":"2022-09-22T18:20:43.105Z","dependency_job_id":null,"html_url":"https://github.com/jefferson10147/LetterSoup-Algorithm","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/jefferson10147%2FLetterSoup-Algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferson10147%2FLetterSoup-Algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferson10147%2FLetterSoup-Algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferson10147%2FLetterSoup-Algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jefferson10147","download_url":"https://codeload.github.com/jefferson10147/LetterSoup-Algorithm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054945,"owners_count":21040093,"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":["algorithm","java","matrix"],"created_at":"2024-11-05T18:17:35.270Z","updated_at":"2025-04-09T14:29:41.165Z","avatar_url":"https://github.com/jefferson10147.png","language":"Java","readme":"# Letter Soup Java Algorithm\n\nThe complexity of this algorithm is based on the numers of words you like to write inside the matrix, \nand how big matrix is, this means if you want to write a big numbers of words inside a small matrix, \nthe algorithm will take some time to find the correct state where the whole words are inside matrix. \nAnd you have to be SURE that the words you like to write inside the matrix can be writen in  at least one state, \nthis can be solved simple as counting the whole letters of your words and comparing if this number is \u003c= that NxN.\n\n\n## How to use this algorithm:\n\n* Make an instance of LetterSoup class, just passing to the constructor the order of the matrix that you like to create, and now you can get the letter soup matrix with just one method, example:\n\n```java\npublic static void main(String[ ] arg)\n{\n    LetterSoup Game = new LetterSoup(10);\n    char [][]matrix = Game.getMatrix();\n\n    for(int i = 0; i \u003c matrix.length; i++)\n    {\n        for(int j = 0; j \u003c matrix[i].length; j++)\n            System.out.print(matrix[i][j]+\" \"); \n\n        System.out.println(\"\\n\");\n   }\n            \n}\n```\n* To choose which words are going to be inside the matrix, modify this Class atribute\n\n```java\nprivate String [] words = { \"pez\", \"oso\",\"ave\",\"boa\",\"lobo\",\"gato\"};\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefferson10147%2Flettersoup-algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjefferson10147%2Flettersoup-algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefferson10147%2Flettersoup-algorithm/lists"}