Oh, that's an interesting angle! Do you know of texts or concepts I can look up? It might improve my coding by quite a bit.
I think this is still the classic reference (it's what I used in graduate school): https://www.cambridge.org/core/books/randomized-algorithms/6...
I think this is still the classic reference (it's what I used in graduate school): https://www.cambridge.org/core/books/randomized-algorithms/6...