← concepts · the commons
CDF function
5 moment(s) that assert this concept — showing 1–5 of 5
single sourceRests on a single channel — treat as a lead, verify independently
↣ how this spread over time →CWI Database Architectures · youtube · en
1The CDF function is modeled as a monotonic function that maps keys to their relative positions in a sorted array.
“so here we have an example of a CDF function with the keys on the x-axis and the relative positions normalized to one here on the y-axis”
spoken · 176s · 2020-07-04
CWI Database Architectures · youtube · en
2A linear approximation of the CDF function is used to estimate the position of a key in a sorted array, followed by a localized search around that estimate.
“the blue blue line is a simple approximation just a linear approximation of the CDF function. So now in order to find a key in a sorted array what you do is you evaluate this function for a specific key to get the relative position in your sorted array and then you do some localized search around this estimated position”
spoken · 199s · 2020-07-04
CWI Database Architectures · youtube · en
3Existing learned index methods lack support for efficient inserts and suffer from expensive byte loading, requiring multiple training passes or significant computational effort per new element, leading to high CPU usage and slow bulk loading.
“There's also some limitations so the main one that a lot of people are working on these days is the lacking lack of support for inserts. There's some work here there's for example the fitting tree which is essentially a B tree on top of piecewise linear regression segments like I presented in SIGMOD last year. There's Alex by Microsoft Research that was presented in SIGMOD this year. Alex also just released her source code so you could also try that out. And PGM it's another variant of a learned index that got presented in VLDB this year. It's also open source you can also play around. So yeah so what is the problem with all of these? So all of them have an expensive byte loading meaning they either require multiple training passes so for example to fit some linear regression model, you need multiple passes or they have a significant effort per new element. And with that I mean when you have your sorted array um and you do a single pass over it, um a lot of times um there's a lot of computation going on per new element to fit that CDF function. Um so you cannot really build it at high speed. And the most important point in my opinion is that all of these are very complex and hard to implement.”
spoken · 314s · 2020-07-04
CWI Database Architectures · youtube · en
4Radix Spline uses a simple error-bounded spline model to approximate the CDF function, avoiding complex deep learning or linear regression models that require multiple passes and instead enables localized binary search with a guaranteed maximum interpolation error.
“Radix Spline uses an error bounded spline model to approximate the CDF function. So we don't use anything complex um like you know deep learning models or not even linear regression which requires multiple passes. We use a very simple error bounded spline. And the goal of the spline algorithm is we want to find the smallest set of spline points that guarantees an error bound and this error bound is important as I mentioned before since when we have that bound we can do a localized search using using binary search for instance around the estimated position.”
spoken · 449s · 2020-07-04
CWI Database Architectures · youtube · en
5The algorithm iterates once over the CDF function and checks whether to install a new spline point based on the orientation of lines relative to an error corridor.
“what this algorithm does is it iterates once over the CDF function, and then what it then it basically draws a line from the current base point to the upper limit of the error corridor and what it does is now to check whether we need to install a new spline point”
spoken · 605s · 2020-07-04