JIYIK CN >

Current Location:Home > Learning >

All

The road to learning sorting algorithms - bubble sort

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

The road to learning sorting algorithms - bubble sort

Bubble sort is also a simple and intuitive sorting algorithm. The idea is that it repeatedly visits the sequence to be sorted, compares two elements at a time, and swaps them if they are in the wrong order. The work of visiting the sequence...

Full

The road to learning sorting algorithms - selection sort

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

The road to learning sorting algorithms - selection sort

Selection sort is a simple and intuitive sorting algorithm. Its basic idea is to select a maximum (or minimum) element in an unsorted sequence and put it at the end (note: this is the end of the unsorted sequence, which can be considered as...

Full

Common sorting algorithms

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

This article introduces several commonly used sorting algorithms in software engineering. The core codes of all sorting algorithms are introduced in "Core Codes of Common Sorting Algorithms" 1. Insertion Sort The basic idea of ​​inserti...

Full

The road to learning sorting algorithms - heap sort

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

The road to learning sorting algorithms - heap sort

Like other sorting algorithms, let's first look at the definition of heap sort. Heapsort : refers to a sorting algorithm designed using the heap data structure. A heap is a structure that approximates a complete binary tree and satisfies th...

Full

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

How to implement the singleton pattern in JavaScript ES6+

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

In this article, we will show you how to implement the singleton pattern in JavaScript. If we are a full-stack JavaScript developer, we know that JavaScript is a powerful language and we can build amazing websites with it. On the other hand...

Full

Scan to Read All Tech Tutorials

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

Hottest

Tags

Scan the Code
Easier Access Tutorial