Articles for author: Taneesha Mathur

KMP Algorithm

The Knuth-Morris-Pratt (KMP) algorithm revolutionized string matching by achieving linear time complexity, denoted as O(n). Introduced in 1970 by Knuth, Morris, and Pratt, this algorithm efficiently identifies patterns within text by employing a ‘Prefix Table,’ alternatively known as the LPS (Longest Proper Prefix which is also Suffix) Table. Unlike traditional methods, KMP avoids redundant comparisons, ...

Median and Order Statistics

The median is essentially the “halfway point” of the set of data. Order statistics are sample values placed in ascending order. The study of order statistics deals with the applications of these ordered values and their functions. Takeaways The distribution function for the Yi order statistic derived using the binomial distribution is Introduction to Median and Order Statistics On normal occasions, would ...