Posts tagged: Computer

← All posts

Method of least squares
4 min read

When there are more equations than unknowns, there is usually no exact solution. The method of least squares - introduced by Adrien-Marie Legendre in 1805 while studying the orbits of comets - tells us how to find the best solution by minimizing the total squared error.

GPU Monitoring app with Django
2 min read

A tiny GPU monitoring web app built with Django and gpustat that shows real-time GPU usage, memory, and active processes per user - handy in shared research labs and clusters.

Maximum Subsequence Sum of an Array
5 min read

Solving the maximum (contiguous) subsequence sum problem in Python from a slow brute-force O(n^3) approach down to an elegant linear-time algorithm that also returns the subsequence itself.