Tagged articles
algorithm fundamentals
12 articles · Page 1 of 1
This article explains the definitions, mathematical foundations, classic examples, solving methods, and practical differences between recurrence relations and recursion, illustrating how each approach works, their implementation details, and how they can be transformed into one another.
algorithm designalgorithm fundamentalsmathematics
0 likes · 8 min read

This article introduces six fundamental sorting algorithms—bubble, selection, insertion, shell, merge, and quick sort—explains their principles, provides Python implementations with code examples, visual animations, and compares built‑in sorting methods, helping readers understand and apply these techniques effectively.
PythonQuick SortSorting Algorithms
0 likes · 16 min read

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

The article explains that dynamic programming boils down to two core ideas—treating problems as a set of independent sub‑problems via divide‑and‑conquer and using memoization to avoid redundant calculations—illustrated with analogies to business management and contrasted with plain recursion.
Divide and Conqueralgorithm fundamentalsdynamic programming
0 likes · 6 min read

This article introduces the five common linked‑list variations, explains head pointers and head nodes, compares singly and doubly linked lists, and provides a complete C implementation of a doubly circular linked list with functions for creation, traversal, insertion, and deletion.
algorithm fundamentalsc-programmingdoubly circular list
0 likes · 7 min read

This article explains how linear congruential generators produce pseudo‑random numbers, demonstrates their use with step‑by‑step examples, visualizes the distribution of generated values, and applies the method to design a simple gacha system while discussing its statistical properties and practical limitations.
Simulationalgorithm fundamentalsgacha system
0 likes · 6 min read

This article explains the purpose and practical benefits of bitwise operations in Java, describes signed number representations (sign‑magnitude, ones' complement, two's complement), shows how bits can optimize time and space, and details the seven common bitwise operators with examples and a reference table.
Javaalgorithm fundamentalsbinary representation
0 likes · 13 min read

This article explains the core idea of greedy algorithms, outlines their basic workflow, identifies problem types where they apply, presents a generic greedy framework, demonstrates a fractional knapsack implementation in C++, and lists several classic greedy problems with brief solutions.
C++activity selectionalgorithm examples
0 likes · 9 min read

The article illustrates the basic principle of bubble sort through a series of comic‑style images, explains how repeated element comparisons and swaps gradually produce an ascending sequence, discusses performance implications of excessive swaps, and provides a complete Java implementation of selection sort for comparison.
JavaSorting Algorithmsalgorithm fundamentals
0 likes · 4 min read

This article introduces sorting algorithms, distinguishing internal and external sorting, listing major internal sorts, explaining their time‑complexity categories and stability properties, and providing visual illustrations for each algorithm along with a reference to an open‑source implementation.
Sorting Algorithmsalgorithm fundamentalsdata structures
0 likes · 3 min read

This article introduces classic optimization algorithms, distinguishing direct methods that require convexity and closed‑form solutions from iterative first‑ and second‑order methods, and explains their applicability, underlying theory, and key references for solving smooth unconstrained problems.
Gradient DescentNewton's methodalgorithm fundamentals
0 likes · 8 min read

This article presents concise explanations and step‑by‑step procedures for ten classic algorithms—including quick sort, heap sort, merge sort, binary search, BFPRT selection, depth‑first and breadth‑first graph traversals, Dijkstra’s shortest‑path method, dynamic programming principles, and the Naive Bayes classifier—highlighting their complexities and core ideas.
Graph AlgorithmsSearchingalgorithm fundamentals
0 likes · 11 min read
