-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified file structure, added readme
- Loading branch information
1 parent
a830f8a
commit 175bdcb
Showing
12 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### Brief | ||
|
||
In the `src` folder, the source codes for getting unique bracelets and necklaces are listed. | ||
A little bit of a modification to the original algorithm was necessary, but the backbone of the algorithms are the same as Sawada and FKM algorithm. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### REFERENCES | ||
|
||
- H. Fredricksen and I. J. Kessler, "An algorithm for generating necklaces of beads in two colors," Discrete Mathematics 61 (1986) 181-188 | ||
- H. Fredricksen and J. Maiorana, "Necklaces of beads in k colors and k-ary de Bruijn sequences," Discrete Mathematics 23, No. 3 (1978) 207-210 | ||
- F. Ruskey, C. Savage, and T. Wang, "Generating Necklaces," Journal of Algorithms 13, No.3 (1992) 414-430 | ||
- J.Sawada, "Generating bracelets in constant amortized time,", Society for Industrial and Applied Mathematics 31, No.1 (2001) 259-268 | ||
- J.Davies, “Combinatorial Necklaces and Bracelets”, www.jasondavies.com/necklaces, Accessed 15 Nov. 2023 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Necklace Generator](https://f23-cs131-yuen-17240.github.io/DL_Project_Yeunha_Kim/) | ||
|
||
### generate.js | ||
|
||
This file contains the main javascript function that calls getBracelets or gerNecklace based on user inputs. | ||
|
||
### getBracelets.js | ||
|
||
The function getBracelets returns a 2D array, where each sub array represents a single unique arrangement. | ||
|
||
### getNecklaces.js | ||
|
||
The function getNecklaces returns a 2D array, where each sub array represents a single unique arrangement. | ||
|
||
### linearFinite.js and linearInfinite.js | ||
|
||
While these are not really important functions of the project, I decided to include these two files as well, since I used it as a part of the presentation. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.