NOTE & BLOG - All published posts

ALL POSTS

The Master Theorem For Time Complexity

In this article, we will model the time complexity of divide and conquer using mathematical methods, analyze its asymptotic properties, and provide three methods of calculation.

18 December, 2023
ALGORITHM
MATHEMATICS
COMPUTATION

The Bash Game

A pile of stones, two people take turns to take at least 1 stone and at most 2 stones. Whoever gets the last stone loses.

14 December, 2023
ALGORITHM

Fast Inverse Square Root

Magic Number - 0X5f3759df

The article introduces an algorithm called Fast Inverse Square Root, which is used to quickly calculate the inverse square root of a floating point number.

8 December, 2023
MATHEMATICS
ALGORITHM

How Do Computer Calculate the Log-Function

Take the Glibc's Mindset for Example
7 December, 2023
ALGORITHM
MATHEMATICS

Moore's Voting Algorithm for Finding Majority Element

Moore's Voting Algorithm is an algorithm used to find the element that appears more than half the time in an array.

2 December, 2023
ALGORITHM

A Star Algorithm

A* search algorithm is a path finding algorithm that finds the single-pair shortest path between the start node(source) and the target node(destination) of a weighted graph.

24 November, 2023
ALGORITHM

Rabin-Karp Algorithm

It is designed to address the multiple pattern string matching problem.

22 November, 2023
ALGORITHM

Joseph Circle Problem

A description, analysis and solution for joseph circle problem.

21 November, 2023
ALGORITHM

Use Differential Equation Method and Matrix Method to Find Fibonacci Sequence General Formula

This article gives two methods to derive Fibonacci sequence: matrix method and difference equation method

20 November, 2023
MATHEMATICS

Problem: Element Combination Using Marking Method

This article presents an algorithm for the problem of selecting combinations of elements.

17 November, 2023
ALGORITHM