Skip to main content
← All Tags

Algorithms

19 articles in this category

AI NewsComputer ScienceAlgorithms

Cellular Automata Dynamics: The Impact of Frozen Barriers on Information Flow

Introducing one frozen cell into a cellular automaton reshapes pattern propagation, blocking information flow in Turing-complete systems like Rule 110.

Read more
AI NewsData ScienceAlgorithms

Counting a Billion Unique Items with Almost No Memory

A new algorithm, CVM, can estimate the number of unique elements in a stream with 98% accuracy using only a few kilobytes of memory.

Read more
AI NewsDatabasesAlgorithms

Expired Oracle Patent Opens Fast Sorting Algorithm to Open Source Databases

A 20-year-old Oracle sorting algorithm patent has expired, potentially increasing open-source database speeds by up to 5x.

Read more
AI NewsAlgorithmsJava

Implement the FizzBuzz Puzzle in Java

Explore three Java solutions to the classic FizzBuzz programming puzzle, optimizing for readability and performance.

Read more
AI NewsAlgorithmsJava String

Generate Valid and Unique Identifiers

Learn and compare three ways of generating random and unique alphanumeric strings for identifiers, with performance benchmarks.

Read more
AI NewsLeetCodeAlgorithms

Valid Palindrome LeetCode Solution

The LeetCode 'Valid Palindrome' problem (problem 125) challenges developers to efficiently determine if a string is a palindrome, ignoring non-alphanumeric characters.

Read more
AI NewsCodingAlgorithms

68. Text Justification | LeetCode | Top Interview 150

This article details a solution to LeetCode's 'Text Justification' problem, achieving optimal word distribution within line width constraints.

Read more
AI NewsOptimizationAlgorithms

Cracking the Complexity Barrier: A Smarter Way to Solve Boolean Puzzles

New algorithm cuts Boolean problem-solving time by dynamically adapting strategies for complex constraints.

Read more
AI NewsSecurityAlgorithms

Linux SecureRandom: Blocking Is Now Obsolete

Modern Linux systems eliminate SecureRandom blocking; performance tests show <1% difference between blocking/non-blocking variants.

Read more
AlgorithmsInterviewArray Manipulation

Product of Array Except Self: Division-Free Array Manipulation

Learn how to compute products of all elements except the current one without using division. Master the prefix-suffix pattern that appears in countless array problems and understand why O(n) with O(1) space is achievable.

Read more
AlgorithmsInterviewDynamic Programming

Maximum Subarray: Kadane's Algorithm and the Art of Local vs Global Optimization

Discover how Kadane's algorithm finds the maximum sum subarray in O(n) time. Learn why tracking local maximums leads to global solutions, and how this pattern applies far beyond array problems.

Read more
AlgorithmsInterviewSliding Window

Longest Substring Without Repeating Characters: The Sliding Window Technique

Master the sliding window pattern through one of its most elegant applications. Learn how to find the longest substring without repeating characters in O(n) time using a hash set and two pointers.

Read more
AlgorithmsInterviewHash Maps

Two Sum: The First Step Into Algorithmic Problem Solving

Master the Two Sum problem with a hash map solution. Learn how to transform a brute force O(n²) approach into an elegant O(n) algorithm, and why this problem appears in nearly every coding interview.

Read more
AlgorithmsInterviewDynamic Programming

Best Time to Buy and Sell Stock: Finding Profit in a Single Pass

Learn how to find the maximum profit from a single stock transaction with an elegant O(n) solution. Discover why tracking the minimum price is the key insight that transforms this problem from complex to simple.

Read more
AlgorithmsInterviewHeap

Top K Frequent Elements: Finding Signal in the Noise

Master the Top K Frequent problem with practical heap-based and optimized solutions. Learn when to use max heaps vs min heaps, and why this matters for real-world data analysis.

Read more
AlgorithmsInterviewDFS

Flood Fill Algorithm - The Paint Bucket Tool Explained

Implement flood fill using DFS. Learn the key optimization: use color changes as implicit visited marking to eliminate the need for a separate Set. Includes iterative and recursive solutions with real trade-offs.

Read more
AI NewsQuantum ComputingAlgorithms

Quantum Algorithm Breakthrough: Potential Speedup in Counting Symmetric Group Coefficients

IBM researchers have proposed a new quantum algorithm for computing Kronecker coefficients, potentially offering a significant speedup over classical methods in algebraic combinatorics. While a leading mathematician has challenged the initial conjecture, the work highlights a promising avenue for quantum advantage in mathematics and could lead to new quantum algorithms.

Read more
AI NewsAlgorithmsJava Programming

Calculating Angle Differences in Java: Methods and Implementations

Explore three methods to compute the difference between two angles in Java, including absolute, shortest, and sign-preserving shortest differences, with code examples and practical use cases.

Read more
AI NewsAlgorithmsJava Programming

BCD to Decimal Conversion in Java: Techniques and Examples

This article explains Binary Coded Decimal (BCD) format, its applications, and two Java methods for converting BCD to decimal using bitwise operations and array processing.

Read more