Tag

sorting algorithm

0 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 SortPHP
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.

FundamentalsPHPalgorithm
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 ExamplePHPalgorithm 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.

algorithmcomplexity analysisdata-structures
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.

Javaalgorithm tutorialdata-structures
0 likes · 5 min read
Heap Sort: Theory, Implementation, and Step‑by‑Step Explanation
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 languagealgorithm optimizationdivide and conquer
0 likes · 9 min read
Quick Sort: Overview, Naïve Implementation, Optimizations, and Non‑Recursive Version
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.

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