noghartt / til
Today I learned
I was running my Forester setup locally, found a specific way to expose an HTTP server easily in Python:
This command starts an HTTP server on the specified port and serves files from the specified directory.
Introduction to Bayes' Rules
2025-04-22The Bayes’ rule is a fundamental theorem in probability theory which describes the probability of a given event based on a prior knowledge of the conditions that might be related to the event.
Where:
- is the posterior probability of event A given event B.
- is the likelihood of event B given event A.
- is the prior probability of event A.
- is the marginal probability of event B.
Skiplists
2025-04-20Skiplist is a kind of probabilistic data structure that allows for fast search, insertion, and deletion operations. It’s basically a linked list with multiple levels of links, where each levels is a subset of the previous level.
It can be used to handle some operations at data level for databases, like handling LSM trees. Check more here.