Category Archives: Mathematics

Compress sequence of UNIX timestamps with microseconds accuracy to ~10bits/timestamp

Problem Setup: There is a stream of timestamps that need to be transferred across some network stream; Goal is to compress this sequence of timestamps (with microseconds accuracy, lossless). Also the encoding and decoding process should be very fast so that it can scale for time critical processes; Some assumptions:… Read more »

Drawing a 3d surface patch using Bezier equations

      No Comments on Drawing a 3d surface patch using Bezier equations

This post covers : What’s a bezier equation? Creating a 3d surface patch using Bezier curves Making it interactive So what’s a Bezier curve:  Its a cubic parametric curve used to draw smooth curves, we can draw a bezier curve using two endpoints and two control points. It looks something… Read more »