Tagged articles
15 articles
Page 1 of 1
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.

PHPSorting Algorithmalgorithm implementation
0 likes · 5 min read
Counting Sort in PHP: Implementation, Steps, Advantages, and Use Cases
Ops Development & AI Practice
Ops Development & AI Practice
Apr 21, 2024 · Fundamentals

Master QuickSort in Go: Dive into the Algorithm and Its Real-World Use

This article explains the QuickSort algorithm’s divide-and-conquer principle, walks through its step-by-step process, provides a complete Go implementation with code, discusses practical applications, performance considerations, and future optimization directions, offering readers a solid grasp of sorting fundamentals.

Go ProgrammingQuickSortSorting Algorithm
0 likes · 5 min read
Master QuickSort in Go: Dive into the Algorithm and Its Real-World Use
ITPUB
ITPUB
Nov 12, 2022 · Databases

Understanding MySQL ORDER BY: Default vs Rowid Algorithms and Optimization Tips

This article explains how MySQL executes ORDER BY queries, compares the default sorting algorithm with the rowid method, and provides practical optimization steps such as indexing, adjusting sort_buffer settings, and choosing the appropriate algorithm based on data size and memory.

Order ByRowidSorting Algorithm
0 likes · 7 min read
Understanding MySQL ORDER BY: Default vs Rowid Algorithms and Optimization Tips
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.

PHPSorting Algorithmfundamentals
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 ExamplePHPSorting Algorithm
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.sortJDKSorting Algorithm
0 likes · 15 min read
Behind the Scenes of Arrays.sort: What Does JDK Do?
JavaEdge
JavaEdge
Nov 14, 2021 · Fundamentals

Master Merge Sort: Step‑by‑Step Explanation, Code, and Analysis

This article explains the merge sort algorithm in detail, covering its divide‑and‑conquer principle, step‑by‑step process with illustrative examples, a complete C implementation, and an analysis of its time and space complexities and suitable use cases.

C ProgrammingSorting Algorithmalgorithm analysis
0 likes · 7 min read
Master Merge Sort: Step‑by‑Step Explanation, Code, and 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.

Data StructuresSorting 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.

Sorting Algorithmbitmap sortexternal sort
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.

Algorithm OptimizationC languageQuick Sort
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.

AsynchronousJavaScriptSorting Algorithm
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.

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