├── .gitmodules ├── LICENSE ├── README.md ├── _config.yml ├── first_314_digits_of_PI.png └── first_314_digits_of_PI.txt /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Master-Theorem"] 2 | path = Master-Theorem 3 | url = https://github.com/claytonjwong/Master-Theorem.git 4 | [submodule "The-ART-of-Dynamic-Programming"] 5 | path = The-ART-of-Dynamic-Programming 6 | url = https://github.com/claytonjwong/The-ART-of-Dynamic-Programming.git 7 | [submodule "Algorithms-DNA-Sequencing"] 8 | path = Algorithms-DNA-Sequencing 9 | url = https://github.com/claytonjwong/Algorithms-DNA-Sequencing.git 10 | [submodule "competitive-programming"] 11 | path = competitive-programming 12 | url = https://github.com/claytonjwong/competitive-programming.git 13 | [submodule "Algorithms-Stanford"] 14 | path = Algorithms-Stanford 15 | url = https://github.com/claytonjwong/Algorithms-Stanford.git 16 | [submodule "Algorithms-UCSanDiego"] 17 | path = Algorithms-UCSanDiego 18 | url = https://github.com/claytonjwong/Algorithms-UCSanDiego.git 19 | [submodule "Towers-Of-Hanoi"] 20 | path = Towers-Of-Hanoi 21 | url = https://github.com/claytonjwong/Towers-Of-Hanoi.git 22 | [submodule "leetcode-js"] 23 | path = leetcode-js 24 | url = https://github.com/claytonjwong/leetcode-js.git 25 | [submodule "leetcode-py"] 26 | path = leetcode-py 27 | url = https://github.com/claytonjwong/leetcode-py.git 28 | [submodule "advent-of-code"] 29 | path = advent-of-code 30 | url = https://github.com/claytonjwong/advent-of-code.git 31 | [submodule "mini-habits"] 32 | path = mini-habits 33 | url = https://github.com/claytonjwong/mini-habits.git 34 | [submodule "reading"] 35 | path = reading 36 | url = https://github.com/claytonjwong/reading.git 37 | [submodule "leetcode"] 38 | path = leetcode 39 | url = https://github.com/claytonjwong/leetcode.git 40 | [submodule "imperfectionist"] 41 | path = imperfectionist 42 | url = https://github.com/claytonjwong/imperfectionist.git 43 | [submodule "rubiks-cube"] 44 | path = rubiks-cube 45 | url = https://github.com/claytonjwong/rubiks-cube.git 46 | [submodule "leetcode-kt"] 47 | path = leetcode-kt 48 | url = https://github.com/claytonjwong/leetcode-kt.git 49 | [submodule "learning"] 50 | path = learning 51 | url = https://github.com/claytonjwong/learning 52 | [submodule "Algorithms-Illuminated"] 53 | path = Algorithms-Illuminated 54 | url = git@github.com:claytonjwong/Algorithms-Illuminated.git 55 | [submodule "ACT"] 56 | path = ACT 57 | url = git@github.com:claytonjwong/ACT.git 58 | [submodule "socartic-method"] 59 | path = socartic-method 60 | url = git@github.com:claytonjwong/socartic-method.git 61 | [submodule "feedback"] 62 | path = feedback 63 | url = git@github.com:claytonjwong/feedback.git 64 | [submodule "bill-walsh"] 65 | path = bill-walsh 66 | url = git@github.com:claytonjwong/bill-walsh.git 67 | [submodule "seven-habits"] 68 | path = seven-habits 69 | url = git@github.com:claytonjwong/seven-habits.git 70 | [submodule "professional-skills-for-the-workplace"] 71 | path = professional-skills-for-the-workplace 72 | url = git@github.com:claytonjwong/professional-skills-for-the-workplace.git 73 | [submodule "emotional-intelligence"] 74 | path = emotional-intelligence 75 | url = git@github.com:claytonjwong/emotional-intelligence.git 76 | [submodule "difficult-conversations"] 77 | path = difficult-conversations 78 | url = git@github.com:claytonjwong/difficult-conversations.git 79 | [submodule "sleep"] 80 | path = sleep 81 | url = git@github.com:claytonjwong/sleep.git 82 | [submodule "small-talk"] 83 | path = small-talk 84 | url = git@github.com:claytonjwong/small-talk.git 85 | [submodule "savor-quest"] 86 | path = savor-quest 87 | url = git@github.com:claytonjwong/savor-quest.git 88 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Algorithms 2 | > You have to let it all go, Neo - fear, doubt, and disbelief... **Free your mind.** 3 | > 4 | [-Morpheus (The Matrix, 1999)](https://en.wikipedia.org/wiki/The_Matrix) 5 | 6 | Images can be imprinted upon the mind as a "feeling" which can be sent through the hippocampus into the mind's "long-term memory store" to later been "seen" upon demand by the prefrontal cortex (the mind's "smart manager") and expressed via the basal ganglia (the mind's "stupid repeater"); and thus, it is possible to beneficially self-modify our minds by iteratively improving our observational opportunities for growth and adapting accordingly with metacognition. Yet, some tasks and settings preclude people from receiving self-correcting information which would reveal the suboptimal nature of their decisions ([the Dunning-Kruger effect](https://en.wikipedia.org/wiki/Dunning-Kruger_effect)). Double-ignorance is similar to a dependency loop: how can we find an entry point within a bidirectionally cyclic graph? 7 | 8 | > People have vices, do wrong, and make themselves wretched because they don’t really understand what they are doing and why. They haven’t thought hard enough about it. But there’s a special tier of Socratic dread and contempt for double ignorance – the ignorance of those who don’t know but think they do. 9 | > 10 | [-Ward Farnsworth](https://en.wikipedia.org/wiki/Ward_Farnsworth) 11 | 12 | ## The First 314 Digits of PI 13 | 14 | A stored "feeling" represented as three matrices of `10` rows and `10` columns, followed by one row of `10`, followed by one row of `4`. 15 | 16 | ![](first_314_digits_of_PI.png) 17 | 18 | ``` 19 | 3141592653 20 | 5897932384 21 | 6264338327 22 | 9502884197 23 | 1693993751 24 | 0582097494 25 | 4592307816 26 | 4062862089 27 | 9862803482 28 | 5342117067 29 | 30 | 9821480865 31 | 1328230664 32 | 7093844609 33 | 5505822317 34 | 2535940812 35 | 8481117450 36 | 2841027019 37 | 3852110555 38 | 9644622948 39 | 9549303819 40 | 41 | 6442881097 42 | 5665933446 43 | 1284756482 44 | 3378678316 45 | 5271201909 46 | 1456485669 47 | 2346034861 48 | 0454326648 49 | 2133936072 50 | 6024914127 51 | 52 | 3724587006 53 | 6063 54 | ``` 55 | 56 | ## Download Instructions 57 | Use git to clone this repository and submodules from the command line: 58 | 59 | ``` 60 | git clone git@github.com:claytonjwong/Algorithms.git 61 | cd Algorithms 62 | git submodule update --init --recursive 63 | ``` 64 | 65 | Update existing submodules from the command line: 66 | 67 | ``` 68 | git pull --recurse-submodules 69 | ``` 70 | 71 | ## Jedi Mind Tricks 72 | 73 | > Your mind will take the shape of what you frequently hold in thought, for the human spirit is colored by such impressions. 74 | > 75 | [-Marcus Aurelius, *Meditations*, 5.16](https://en.wikipedia.org/wiki/Meditations) 76 | 77 | * [Mini Habits](https://claytonjwong.github.io/mini-habits/) 78 | * [Learning How to Learn](https://claytonjwong.github.io/learning/) 79 | * [How to be an Imperfectionist](https://claytonjwong.github.io/imperfectionist/) 80 | * [Speed Reading with the Right Brain](https://claytonjwong.github.io/reading/) 81 | * [Science of Well-Being](https://claytonjwong.github.io/wellness/) 82 | * [A Liberated Mind: How to Pivot Toward What Matters](https://claytonjwong.github.io/ACT/) 83 | * [The Socratic Method](https://claytonjwong.github.io/socratic-method/) 84 | * The Obstacle is the Way: The Timeless Art of Turning Trials into Triumph 85 | * Ego is the Enemy 86 | * Courage is Calling: Fortune Favors the Brave 87 | * [Thanks for the Feedback](https://claytonjwong.github.io/feedback/) 88 | * [The Score Takes Care of Itself: My Philosophy of Leadership](https://claytonjwong.github.io/bill-walsh/) 89 | * [The 7 Habits of Highly Effective People](https://claytonjwong.github.io/seven-habits/) 90 | * [Professional Skills for the Workplace](https://claytonjwong.github.io/professional-skills-for-the-workplace/) 91 | * [Emotional Intelligence: Cultivating Immensely Human Interactions](https://claytonjwong.github.io/emotional-intelligence/) 92 | * [Difficult Convestations](https://claytonjwong.github.io/difficult-conversations/) 93 | * [Why We Sleep](https://claytonjwong.github.io/sleep/) 94 | * [Small Talk](https://github.com/claytonjwong/small-talk) 95 | 96 | ### Flow 97 | 98 | > I'm one with the Force, and the Force is with me 99 | > 100 | -[Chirrut Îmwe](https://www.starwars.com/databank/chirrut-imwe) 101 | 102 | https://en.wikipedia.org/wiki/Flow_(psychology) 103 | 104 | * Be Useful (Arnold Schwarzenegger) 105 | * Creativity (Mihaly Csikszentmihalyi) 106 | * Deep Work (Cal Newport) 107 | * Essentialism (Greg McKeown) 108 | * Finding Flow: The Psychology of Engagement with Everyday Life (Mihaly Csikszentmihalyi) 109 | * Flow: The Psychology of Optimal Experience (Mihaly Csikszentmihalyi) 110 | * Focus: The Hidden Driver of Excellence (Daniel Goleman) 111 | * Hidden Potential (Adam Grant) 112 | * Stealing Fire (Steven Kotler & Jamie Wheal) 113 | * The Art of Impossible (Steven Kotler) 114 | * The Power of Habit (Charles Duhigg) 115 | * The Power of Now (Eckhart Tolle) 116 | * The Rise of Superman (Steven Kotler) 117 | * Yoga and the Quest for the True Self (Stephen Cope) 118 | 119 | ## Algorithms 120 | 121 | > Simplicity is the ultimate sophistication 122 | > 123 | –[Leonardo da Vinci](https://en.wikipedia.org/wiki/Leonardo_da_Vinci) 124 | 125 | * [Algorithms Illuminated](https://www.github.com/claytonjwong/Algorithms-Illuminated/) 126 | * [Algorithms Specialization by Stanford University](https://claytonjwong.github.io/Algorithms-Stanford/) 127 | * [Algorithms and Data Structures by UC San Diego](https://claytonjwong.github.io/Algorithms-UCSanDiego/) 128 | * [Algorithms for DNA Sequencing by Johns Hopkins University](https://claytonjwong.github.io/Algorithms-DNA-Sequencing/) 129 | * [Competitive Programmer's Core Skills by Saint Petersburg State University](https://claytonjwong.github.io/competitive-programming/) 130 | * [Bioinformatics](https://github.com/claytonjwong/algo-bioinformatics) 131 | 132 | ## Recursion 133 | * [Master Theorem](https://claytonjwong.github.io/Master-Theorem/) 134 | * [The ART of Dynamic Programming](https://claytonjwong.github.io/The-ART-of-Dynamic-Programming/) 135 | * [The Art and Theory of Dynamic Programming](https://www.academia.edu/8817530/The_Art_and_Theory_of_Dynamic_Programming) 136 | 137 | ## Projects 138 | * [Rubik's Cube](https://claytonjwong.github.io/rubiks-cube/) 139 | * [Savor Quest](https://github.com/claytonjwong/savor-quest) 140 | * [Towers of Hanoi](https://claytonjwong.github.io/Towers-Of-Hanoi/) 141 | 142 | ## Competitive Programming 143 | ## [LeetCode.com](https://leetcode.com/claytonjwong/) 144 | * [KT](https://github.com/claytonjwong/leetcode-kt) 145 | * [JS](https://github.com/claytonjwong/leetcode-js) 146 | * [PY](https://github.com/claytonjwong/leetcode-py) 147 | * [C++](https://github.com/claytonjwong/leetcode) 148 | 149 | ## [AdventOfCode.com](https://www.adventofcode.com/) 150 | 151 | * [2023 - Py3](https://claytonjwong.github.io/advent-of-code/2023/) 152 | * [2022 - Py3](https://claytonjwong.github.io/advent-of-code/2022/) 153 | * [2020 - Py3](https://claytonjwong.github.io/advent-of-code/2020/) 154 | * [2019 - JS](https://claytonjwong.github.io/advent-of-code/2019/) 155 | * [2018 - C++](https://github.com/claytonjwong/advent-of-code/tree/master/2018) 156 | * [2017 - C++](https://github.com/claytonjwong/advent-of-code/tree/master/2017) 157 | 158 | ## Resources 159 | * [Algorithms: Dasgupta-Papadimitriou-Vazirani ( 2006 )](https://github.com/claytonjwong/Algorithms-Stanford/tree/master/documentation/Dasgupta-Papadimitriou-Vazirani.pdf) 160 | * [Algorithms and Data Structures: Mehlhorn-Sanders ( 2007 )](https://github.com/claytonjwong/Algorithms-Stanford/tree/master/documentation/Mehlhorn-Sanders-Toolbox.pdf) 161 | * [Introduction to Algorithms: Cormen-Leiserson-Rivest-Stein ( 2009 )](https://en.wikipedia.org/wiki/Introduction_to_Algorithms) 162 | * [Discrete Probability](https://en.wikibooks.org/wiki/High_School_Mathematics_Extensions/Discrete_Probability) 163 | * [Mathematical Proofs](https://en.wikibooks.org/wiki/High_School_Mathematics_Extensions/Mathematical_Proofs) 164 | 165 | ## Beneficial Songs 166 | * [I Ain't Worried](https://www.youtube.com/watch?v=mNEUkkoUoIA) 167 | * [Rise Up](https://www.youtube.com/watch?v=x12CWu3V0lg) 168 | * [No Time for Toxic People](https://www.youtube.com/watch?v=wJt2qKPZpsk) 169 | * [Whatever It Takes](https://www.youtube.com/watch?v=gOsM-DYAEhY) 170 | * [Try To Be Best](https://www.youtube.com/watch?v=oomCIXGzsR0) 171 | * [Try Everything](https://www.youtube.com/watch?v=c6rP-YP4c5I) 172 | * [Get Back Up Again](https://www.youtube.com/watch?v=IFuFm0m2wj0) 173 | * [Broken](https://www.youtube.com/watch?v=qr1-WpWOUk8) 174 | * We are all imperfect, thus we all have broken parts of us 175 | * 🙂 **Yes and** we can **support** one another as works-in-progress to **lift** each other **up** 176 | * 😔 rather than *judge* one another and *tear* each other *down* -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-leap-day 2 | show_downloads: true 3 | 4 | -------------------------------------------------------------------------------- /first_314_digits_of_PI.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/claytonjwong/Algorithms/e0e0268fca6ab14b35023a9d8c0239972875c4ab/first_314_digits_of_PI.png -------------------------------------------------------------------------------- /first_314_digits_of_PI.txt: -------------------------------------------------------------------------------- 1 | 3141592653 2 | 5897932384 3 | 6264338327 4 | 9502884197 5 | 1693993751 6 | 0582097494 7 | 4592307816 8 | 4062862089 9 | 9862803482 10 | 5342117067 11 | 12 | 9821480865 13 | 1328230664 14 | 7093844609 15 | 5505822317 16 | 2535940812 17 | 8481117450 18 | 2841027019 19 | 3852110555 20 | 9644622948 21 | 9549303819 22 | 23 | 6442881097 24 | 5665933446 25 | 1284756482 26 | 3378678316 27 | 5271201909 28 | 1456485669 29 | 2346034861 30 | 0454326648 31 | 2133936072 32 | 6024914127 33 | 34 | 3724587006 35 | 6063 --------------------------------------------------------------------------------