algorithms
Algorithm development and mathematical thinking
Exploring how mathematics degrees prepare for programming careers, comparing with applied mathematics and computer science, with focus on quantum computing opportunities.
Configure Apache ECharts to handle JavaScript BigInt values accurately in line charts for Collatz conjecture (3n+1) sequences. Use scaling and subtract-base workarounds to avoid precision loss without logarithmic scaling.
Learn to implement delta e 2000 in pure Python without NumPy. Fix common bugs in CIE delta e 2000 code and match colour-science results exactly.
Learn how to create a MathCad program module that counts elements divisible by 3 in each row of a matrix. Includes proper syntax implementation and testing approaches.
Learn how to efficiently clone JavaScript arrays of objects with circular references using structuredClone(). Avoid recursion errors with this production-ready approach.
Learn efficient methods to check if a vector contains a given element in C++. Compare linear search, binary search, and hash-based approaches with time complexity analysis.
Learn how to seed JavaScript's Math.random() function for reproducible random numbers. Explore alternatives like seedrandom library and custom PRNG implementations.
Explore advanced strategies for extreme performance optimization when traditional methods fail. SIMD vectorization, memory layout optimization, and hardware-specific techniques.
Optimal algorithm for Letter Boxed word game: bitmask DP, BFS on (mask, last), admissible heuristics like set-cover bounds, pruning techniques for minimal words. Fast for L=12 puzzles with chaining and coverage.
Compute the exact expected total payoff at stopping time using finite-state Markov chain and dynamic programming. Includes minimal state space, recurrence equations, backward substitution, and Python code for precise fraction.
Plain-English guide to Big O notation and algorithm complexity. Learn common time complexities (O(1), O(log n), O(n), O(n^2)) and simple rules of thumb.
Discover the optimal sock pairing algorithm using in-place sorting like heapsort for O(n log n) time under log-space constraints. Compare with hashing, radix methods, and practical tips for 30 pairs. Relates to element distinctness.