Tag

Sorting Algorithm

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Mar 25, 2025 · Backend Development

Counting Sort in PHP: Implementation, Steps, Advantages, and Use Cases

Counting sort is a non‑comparison integer sorting algorithm with O(n + k) time complexity, and this article explains its principles, step‑by‑step process, PHP implementation code, advantages, drawbacks, and suitable use cases for efficient data handling in backend development.

Backend DevelopmentCounting SortSorting Algorithm
0 likes · 5 min read
Counting Sort in PHP: Implementation, Steps, Advantages, and Use Cases
Laravel Tech Community
Laravel Tech Community
Jun 30, 2022 · Fundamentals

Insertion Sort Implementation in PHP

This article explains the insertion sort algorithm, describes how it repeatedly inserts each element into its correct position in a growing sorted portion of the array, and provides a complete PHP function that sorts a numeric array while preserving stability.

FundamentalsSorting Algorithmalgorithm
0 likes · 2 min read
Insertion Sort Implementation in PHP
Laravel Tech Community
Laravel Tech Community
Jun 14, 2022 · Fundamentals

Bubble Sort Algorithm Explained with PHP Implementation

This article explains the Bubble Sort algorithm, its O(n²) time and O(1) space complexities, describes the step‑by‑step sorting process, provides a complete PHP implementation, and shows sample input and output to illustrate how the algorithm orders data.

Code ExampleSorting Algorithmalgorithm fundamentals
0 likes · 3 min read
Bubble Sort Algorithm Explained with PHP Implementation
DeWu Technology
DeWu Technology
Dec 26, 2021 · Backend Development

Behind the Scenes of Arrays.sort: What Does JDK Do?

The article demystifies Java’s Arrays.sort by tracing its call to TimSort.sort, explaining how the hybrid Timsort algorithm blends merge and insertion sorts, determines minimum run lengths, partitions and merges runs, addresses implementation bugs such as stack allocation and comparator misuse, and celebrates its elegant, efficient design.

Arrays.sortBackend DevelopmentJDK
0 likes · 15 min read
Behind the Scenes of Arrays.sort: What Does JDK Do?
Python Programming Learning Circle
Python Programming Learning Circle
Dec 21, 2020 · Fundamentals

Heap Sort: Theory, Visualization, Implementation, and Complexity Analysis

This article explains heap sort by introducing its theory, visual step‑by‑step construction of a max‑heap, a complete Python implementation, and an analysis of its time and space complexities, including detailed code walkthrough and complexity derivations.

Sorting Algorithmalgorithmcomplexity analysis
0 likes · 7 min read
Heap Sort: Theory, Visualization, Implementation, and Complexity Analysis
360 Tech Engineering
360 Tech Engineering
Dec 11, 2020 · Fundamentals

Heap Sort: Theory, Implementation, and Step‑by‑Step Explanation

This article explains the heap sort algorithm, describing the heap data structure, the process of building a max‑heap, the sorting loop with element swaps, and provides detailed Java code examples along with key points and an illustrative example array.

JavaSorting Algorithmalgorithm tutorial
0 likes · 5 min read
Heap Sort: Theory, Implementation, and Step‑by‑Step Explanation
Top Architect
Top Architect
Feb 25, 2020 · Big Data

External Sorting of a 4.6 GB File Containing 500 Million Integers: Strategies, Implementations, and Performance

The article presents a practical case of sorting a 4.6 GB file with 500 million random integers, evaluates in‑memory quicksort and merge‑sort implementations, discusses bitmap sorting, and finally details a multi‑phase external‑sort algorithm with measured runtimes and resource considerations.

Big DataJavaSorting Algorithm
0 likes · 11 min read
External Sorting of a 4.6 GB File Containing 500 Million Integers: Strategies, Implementations, and Performance
Selected Java Interview Questions
Selected Java Interview Questions
Feb 13, 2020 · Fundamentals

Quick Sort: Overview, Naïve Implementation, Optimizations, and Non‑Recursive Version

This article explains the quick sort algorithm, covering its basic divide‑and‑conquer principle, a naïve C implementation, improvements such as two‑way partitioning, random and median‑of‑three pivot selection, and a non‑recursive version using an explicit stack, with full source code examples.

C languageSorting Algorithmalgorithm optimization
0 likes · 9 min read
Quick Sort: Overview, Naïve Implementation, Optimizations, and Non‑Recursive Version
MaoDou Frontend Team
MaoDou Frontend Team
Jun 18, 2019 · Frontend Development

How a Joke Sorting Algorithm Reveals JavaScript’s Event Loop Mechanics

Discover how a playful setTimeout‑based sorting trick leverages JavaScript’s event loop to produce correct ordering, while explaining the core concepts of synchronous vs asynchronous tasks, the execution stack, task queue, and why this method isn’t practical for large datasets.

JavaScriptSorting Algorithmasynchronous
0 likes · 6 min read
How a Joke Sorting Algorithm Reveals JavaScript’s Event Loop Mechanics
37 Interactive Technology Team
37 Interactive Technology Team
May 31, 2019 · Fundamentals

A Comprehensive Guide to QuickSort: Principles, Implementations, Performance Characteristics, and Optimizations

This comprehensive guide explains QuickSort’s divide‑and‑conquer principle, presents two PHP‑style implementations, analyzes its O(N log N) average and O(N²) worst‑case performance, and details practical optimizations such as random pivot selection, switching to insertion sort for small sub‑arrays, three‑way and dual‑pivot variants.

JavaQuickSortSorting Algorithm
0 likes · 10 min read
A Comprehensive Guide to QuickSort: Principles, Implementations, Performance Characteristics, and Optimizations