JIYIK CN >

Current Location:Home > Learning >

All

The road to learning sorting algorithms - quick sort

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

The road to learning sorting algorithms - quick sort

Quick sort is a sorting algorithm developed by Tony Hall. On average, sorting n items requires O(n log n) comparisons. In the worst case, O(n2) comparisons are required, but this is uncommon. In fact, quick sort is often significantly faste...

Full

The road to learning sorting algorithms - merge sort

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

The road to learning sorting algorithms - merge sort

Let's first look at the definition of merge sort Merge sort is an effective sorting algorithm based on the merge operation. This algorithm is a very typical application of the Divide and Conquer method. Merge the ordered subsequences to obt...

Full

Things about the singleton design pattern

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

The singleton design pattern is one of the most commonly used design patterns. The singleton design pattern, just by its name, you can roughly know its meaning. Single means one; instance means instance object. So a singleton has only one i...

Full

The road to learning sorting algorithms - Hill sort

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

The road to learning sorting algorithms - Hill sort

Hill sort is named after the designer of the algorithm, Hill. It is an improvement of Hill on the basis of insertion sort and can be said to be a special insertion sort. Here are the properties of insertion sort: First of all, the insertion...

Full

The road to learning sorting algorithms - table insertion sort

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Table insertion sort was briefly mentioned in Insertion sort (concept) . I briefly summarized it and wrote this article. You can refer to it if you need it. Table insertion sort, as the name implies, uses an index table to sort the original...

Full

Learning the sorting algorithm - Binary Insertion Sort

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Learning the sorting algorithm - Binary Insertion Sort

This article follows the insertion sort (concept article) and presents the implementation steps and implementation code of the binary insertion sort Binary Insertion Sort Algorithm Steps Treat the first element of the first sequence to be s...

Full

Learning path of sorting algorithm - direct insertion sort

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Learning path of sorting algorithm - direct insertion sort

This article follows up on Insertion Sort (Concepts) and presents the implementation steps and code for direct insertion sort. Since the Concepts section already has a large number of illustrations, it would be a bit long-winded to provide...

Full

Learning the Sorting Algorithm - Insertion Sort (Concepts)

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Learning the Sorting Algorithm - Insertion Sort (Concepts)

What is "insertion sort"? The concept is as follows: each time a record to be sorted is inserted into the previously sorted sequence according to its key size, until all records are inserted. Concepts are always somewhat abstract, and can a...

Full

Binary Search

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Binary search is the most popular and efficient search algorithm. In fact, it is the fastest search algorithm. Like jump sort, it also requires the array to be sorted. It is based on a divide and conquer approach where we divide the array i...

Full

Fibonacci Search

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Fibonacci search is an efficient interval search algorithm. It is similar to binary search in that it is also based on a divide-and-conquer strategy and also requires the array to be sorted. In addition, the time complexity of both algorith...

Full

Jump Search

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Skip search is a range search algorithm. It is a relatively new algorithm that works only on sorted arrays. It tries to reduce the number of comparisons required compared to linear search by not scanning every element like linear search. In...

Full

Index Search

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Exponential search, also known as doubling search or finger search, is an algorithm created for searching elements in large arrays. It is a two-step process. First, the algorithm tries to find the range in which the target element exists (L,...

Full

Linear Search

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Linear search is the simplest search algorithm. It is also called sequential search because in this algorithm, we look for the matching element by going through the entire array and comparing each element with the required item. If the requ...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial