ALL POSTS

How Do Computer Calculate the Log-Function

Take the Glibc's Mindset for Example
7 Dec, 2023
ALGORITHMMATHEMATICS

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 Dec, 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 Nov, 2023
ALGORITHM

The Knuth Shuffle Algorithm

The Knuth Shuffle algorithm (also known as the Fisher-Yates Shuffle) generates all possible permutations with equal probability.

23 Nov, 2023
ALGORITHM

Rabin-Karp Algorithm

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

22 Nov, 2023
ALGORITHM

Joseph Circle Problem

A description, analysis and solution for joseph circle problem.

21 Nov, 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 Nov, 2023
MATHEMATICS

Problem: Element Combination Using Marking Method

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

17 Nov, 2023
ALGORITHM

C/C++ Cross-Platform Compile-Macros

When we compile some cross -platform programs, we will inevitably encounter _win32 __linux__ what is the macro of the compiler or the compiler environment.It indicates some information of the current platform environment to the compiler.

5 Nov, 2023
CC++

上劉右相書

蓋聞聖人以四海為家,英宰與千齡合契。用能不行而至,春霆仗天地之威;以息相吹,時雨鬱山川之兆。故有元蛟晚集,憑鶴鼎而先鳴;蒼兕晨驚,運龍韜而首出。並能風騰霧躍,指麾成烈士之功。

16 Sep, 2023
古文整理
/ 9