/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

cp-algorithms.com
| | www.oranlooney.com
2.6 parsecs away

Travel
| | A common example of recursion is the function to calculate the \(n\)-th Fibonacci number: def naive_fib(n): if n < 2: return n else: return naive_fib(n-1) + naive_fib(n-2) This follows the mathematical definition very closely but it's performance is terrible: roughly \(\mathcal{O}(2^n)\). This is commonly patched up with dynamic programming. Specifically, either the memoization: from functools import lru_cache @lru_cache(100) def memoized_fib(n): if n < 2: return n else: return memoized_fib(n-1) + memoiz...
| | henrikwarne.com
2.3 parsecs away

Travel
| | I recently finished the Coursera course Algorithms: Design and Analysis, Part 2 by Professor Tim Roughgarden of Stanford.I've already reviewed part 1, and here are my thoughts on the second part. The main theme of part 1 was the divide and conquer paradigm. In the second part the main themes were greedy algorithms, dynamic programming...
| | www.adamconrad.dev
2.7 parsecs away

Travel
| | Follow along with Steven Skiena's Fall 2018 algorithm course applied to the JavaScript language.
| | www.randomservices.org
49.6 parsecs away

Travel
| [AI summary] The text covers various topics in probability and statistics, including continuous distributions, empirical density functions, and data analysis. It discusses the uniform distribution, rejection sampling, and the construction of continuous distributions without probability density functions. The text also includes data analysis exercises involving empirical density functions for body weight, body length, and gender-specific body weight.