This file contains hidden or 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
| var Keys { | |
| code2Key: function(code) { | |
| return this.code_key[code]; | |
| }, | |
| key2Code: function(key) { | |
| return this.code_key[key]; | |
| }, | |
This file contains hidden or 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
| # Stable Matching Problem | |
| # Preference Profile | |
| prefs = { | |
| 'Xavier': ['Amy', 'Bertha', 'Clare'], | |
| 'Yancey': ['Bertha', 'Amy', 'Clare'], | |
| 'Zeus': ['Amy', 'Bertha', 'Clare'], | |
| 'Amy': ['Yancey', 'Xavier', 'Zeus'], | |
| 'Bertha': ['Xavier', 'Yancey', 'Zeus'], | |
| 'Clare': ['Xavier', 'Yancey', 'Zeus'] |
This file contains hidden or 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
| -- Dijkstra's Algorithm | |
| -- g: a graph of all nodes | |
| -- source: id of start node | |
| function getAllPaths(g, source) | |
| dist = {} | |
| prev = {} | |
| q = {} -- "queue" | |
| -- init values |
This file contains hidden or 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
| """ | |
| ILDA Header Format: | |
| 1-4: "ILDA" | |
| 5-7: Reserved | |
| 8: Format Code | |
| 9-16: Frame or Color Palette Name | |
| 17-24: Company Name | |
| 25-26: Number of Records | |
| 27-28: Frame or Color Palette Number | |
| 29-30: Total Frames or 0 |
OlderNewer