Tag Archives: Technology/Internet

Computer Algorithms: Data Compression with Relative Encoding

Overview Relative encoding is another data compression algorithm. While run-length encoding, bitmap encoding and diagram and pattern substitution were trying to reduce repeating data, with relative encoding the goal is a bit different. Indeed run-length encoding was searching for long … Continue reading

Posted in algorithms | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

JavaScript Performance: for vs. while

JavaScript Loops If you have read some preformance tests on JavaScript loops, you may have heard that “while” is faster than “for”. However the question is how faster is “while”? Here are some results, but first let’s take a look … Continue reading

Posted in javascript | Tagged , , , , , , , , , , | 3 Comments

Computer Algorithms: Data Compression with Bitmaps

Overview In my previous post we saw how to compress data consisting of very long runs of repeating elements. This type of compression is known as “run-length encoding” and can be very handy when transferring data with no loss. The … Continue reading

Posted in algorithms, PHP | Tagged , , , , , , , , , , , , , , , | Leave a comment

Computer Algorithms: Data Compression with Run-length Encoding

Introduction No matter how fast today’s computers and networks are, the users will constantly need faster and faster services. To reduce the volume of the transferred data we usually use some sort of compression. That is why this computer sciences … Continue reading

Posted in algorithms, PHP | Tagged , , , , , , , , , , , , , , , , , , , , , | 5 Comments

Computer Algorithms: Interpolation Search

Overview I wrote about binary search in my previous post, which is indeed one very fast searching algorithm, but in some cases we can achieve even faster results. Such an algorithm is the “interpolation search” – perhaps the most interesting … Continue reading

Posted in algorithms, PHP | Tagged , , , , , , , , , , , , , , , | 3 Comments