Tagged articles
21 articles
Page 1 of 1
Java Tech Enthusiast
Java Tech Enthusiast
Dec 20, 2025 · Fundamentals

How Many Pigs Do You Need to Find a Poisoned Bucket? Solution Explained

After a cautionary tale of a company’s core code and revenue data being dumped on GitHub, the article pivots to solve LeetCode’s “Poor Pigs” problem, explaining how to calculate the minimum number of pigs needed to identify a poisoned bucket using multi‑round testing and providing full Java code.

combinatoricsinformation security
0 likes · 6 min read
How Many Pigs Do You Need to Find a Poisoned Bucket? Solution Explained
Model Perspective
Model Perspective
Nov 7, 2025 · Fundamentals

How Math Turns Chinese Dinner Parties into Optimization Puzzles

This article explores how combinatorics, multi‑objective optimization, game theory, Markov chains, and expected‑return models can mathematically describe seating, menu selection, bill‑splitting, optimal group size, and topic flow in traditional Chinese dinner gatherings.

Game Theorycombinatoricsoptimization
0 likes · 9 min read
How Math Turns Chinese Dinner Parties into Optimization Puzzles
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 11, 2025 · Fundamentals

How to Generate All 3‑Item Combinations in Python Using itertools and List Comprehensions

This article explains a fan's request for a Python solution to a combinatorial problem, demonstrates three different implementations—including itertools.combinations, a custom index‑based method, and a list‑comprehension approach—and compares their outputs, concluding with a recommendation for the most efficient technique.

Code Examplescombinationscombinatorics
0 likes · 5 min read
How to Generate All 3‑Item Combinations in Python Using itertools and List Comprehensions
Liangxu Linux
Liangxu Linux
Feb 25, 2024 · Fundamentals

Unveiling Liu Qian’s Final Magic Trick: The Hidden Josephus Puzzle

The article explains Liu Qian’s last magic performance by modeling the card shuffling as a periodic ABCD pattern, interpreting it through group theory, and ultimately solving the underlying Josephus problem with a binary‑based formula that predicts the surviving card.

Josephus problembinary representationcombinatorics
0 likes · 10 min read
Unveiling Liu Qian’s Final Magic Trick: The Hidden Josephus Puzzle
ITPUB
ITPUB
Dec 25, 2023 · Big Data

Unlock Complex Data Scenarios with Simple MaxCompute SQL Techniques

This article shows how flexible, divergent thinking combined with basic MaxCompute (ODPS) SQL syntax can solve complex data problems such as generating sequences, splitting intervals, performing permutations and combinations, and analyzing continuous activity, providing step‑by‑step examples, SQL code snippets, and practical results.

IntervalsMaxComputeSQL
0 likes · 24 min read
Unlock Complex Data Scenarios with Simple MaxCompute SQL Techniques
Model Perspective
Model Perspective
Oct 26, 2022 · Fundamentals

How Mathematical Modeling Turns Complex Problems into Simple Proofs

This article shows how adopting appropriate mathematical models—function, geometric, combinatorial, and similarity models—can transform intricate algebraic and geometric proof problems into clear, concise solutions, illustrating each approach with concrete examples and visual aids.

AlgebraGeometrycombinatorics
0 likes · 6 min read
How Mathematical Modeling Turns Complex Problems into Simple Proofs
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2022 · Fundamentals

Algorithmic Solutions for Seven Programming Problems (Number Cards, Grid Lines, Cube Packing, Shortest Path, Hamiltonian Cycle, Time Display, Pascal's Triangle)

This article presents detailed problem statements, mathematical analysis, and Python implementations for seven algorithmic challenges covering combinatorial counting, geometry, number theory, graph shortest paths, Hamiltonian cycles, time conversion, and Pascal's triangle indexing.

algorithmcombinatoricscompetitive programming
0 likes · 14 min read
Algorithmic Solutions for Seven Programming Problems (Number Cards, Grid Lines, Cube Packing, Shortest Path, Hamiltonian Cycle, Time Display, Pascal's Triangle)
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 5, 2021 · Fundamentals

How to Generate All 5-Number Combinations Containing Adjacent Values Using Python

This article walks through solving a combinatorial challenge—selecting 5 numbers from a random set of 15 such that a chosen number and its consecutive successor both appear—by presenting multiple Python implementations, from basic random sampling to optimized Monte‑Carlo approaches, complete with code snippets and performance insights.

Monte CarloRandom Samplingcombinatorics
0 likes · 13 min read
How to Generate All 5-Number Combinations Containing Adjacent Values Using Python
NiuNiu MaTe
NiuNiu MaTe
Oct 12, 2021 · Fundamentals

How Many Peaches Did the Monkeys Start With? A Math & Code Puzzle

This article presents a classic monkey‑and‑peach puzzle, derives the minimal initial peach count using mathematical reasoning, and then demonstrates a brute‑force Python program that searches for the solution, illustrating how loops and modular checks solve the problem.

Math PuzzlePythonalgorithm
0 likes · 7 min read
How Many Peaches Did the Monkeys Start With? A Math & Code Puzzle
Python Programming Learning Circle
Python Programming Learning Circle
Apr 20, 2020 · Fundamentals

Understanding Binomial Distribution, Permutations, Combinations, and Their Python Implementations

This article introduces the fundamentals of binomial and Bernoulli distributions, explains permutations and combinations, provides Python functions to compute them, demonstrates probability calculations and visualizations with matplotlib and plotly, and shows a maximum likelihood estimation example for binomial parameters.

MLEbinomial distributioncombinatorics
0 likes · 8 min read
Understanding Binomial Distribution, Permutations, Combinations, and Their Python Implementations
AI Cyberspace
AI Cyberspace
Mar 15, 2018 · Fundamentals

Deriving Permutation and Combination Formulas: A Step‑by‑Step Guide

This article explains the definitions, formulas, and step‑by‑step derivations for permutations, combinations, and repeated combinations, illustrating how A(n,m)=n!/(n‑m)! and C(n,m)=A(n,m)/m! are obtained using the multiplication principle and ball‑and‑separator models, including visual formula images and practical examples.

combinationscombinatoricsformula derivation
0 likes · 6 min read
Deriving Permutation and Combination Formulas: A Step‑by‑Step Guide
AI Cyberspace
AI Cyberspace
Mar 12, 2018 · Fundamentals

Master Counting: How Addition and Multiplication Principles Solve Real-World Problems

This article introduces the fundamental counting principles—classification addition and stepwise multiplication—explaining their concepts, formulas, conditions, and real-world examples such as travel route choices, while comparing their similarities and differences and highlighting their importance in mathematics and computer science.

combinatoricscomputer sciencecounting
0 likes · 5 min read
Master Counting: How Addition and Multiplication Principles Solve Real-World Problems
21CTO
21CTO
Aug 15, 2017 · Fundamentals

Challenge Your Algorithm Skills with Four Progressive Puzzle Problems

This article presents four algorithmic puzzles ranging from entry to advanced levels, explains each problem statement, offers solution strategies and Ruby code snippets, and discusses combinatorial calculations, search optimizations, and implementation details to help programmers sharpen their coding and problem‑solving abilities.

AlgorithmsRubycombinatorics
0 likes · 10 min read
Challenge Your Algorithm Skills with Four Progressive Puzzle Problems
Architects Research Society
Architects Research Society
Oct 30, 2016 · Fundamentals

Why Some Areas of Mathematics Feel Harder Than Others

The perceived difficulty of mathematical fields varies because each branch has its own language, foundational concepts, and required tools, making areas like algebraic geometry seem daunting while others such as number theory or combinatorics appear simpler yet still demand deep insight and advanced techniques.

Differential geometryPDEalgebraic geometry
0 likes · 8 min read
Why Some Areas of Mathematics Feel Harder Than Others