[Sorting] Highlight comparisons, add more algorithms, and offer a web (WASM) version
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cpp, wasm, web-dev
- Domain
- computer-graphics, web-dev
Research direction
Start with Sorting_algorithms_Visualization/src/algorithms.cpp lines 52–63 and Sorting_algorithms_Visualization/src/visualization.cpp lines 206–224 to understand the current sort and drawing paths. The request spans comparison highlighting, several algorithms, BubbleSort behavior, and a browser demo, with Qt for WebAssembly or JavaScript/Canvas suggested as options. Done means comparisons are highlighted, at least three algorithms are added, and the docs page embeds a live demo.
Written by the indexing model from the issue text.
Description
Summary
Only swaps are animated; the compared pair is never highlighted, so algorithms whose work is mostly comparisons (Bubble sort's 9900 compares vs 2439 swaps for n=100) look misleadingly fast. The plain BubbleSort() also lacks the standard shrinking pass/early exit, doing twice the comparisons of Recursive Bubble Sort. Common teaching algorithms (insertion, selection, merge, shell, radix) are missing. A browser build could replace the 36 MB of GIFs on the docs site.
Location
Sorting_algorithms_Visualization/src/algorithms.cpp:52-63Sorting_algorithms_Visualization/src/visualization.cpp:206-224
Evidence
Probe counts for 100 elements: Bubble accesses=9900, Recursive Bubble accesses=4950 (same algorithm family, 2x difference from the missing j < amount-1-i bound).
Expected
Richer, more honest visualisation and a live demo on the docs site.
Proposed fix
Colour compared bars, add insertion/selection/merge/shell/radix/counting sorts, add the j < n-1-i bound plus early exit to BubbleSort (or label it "naive"), add a seed field, and build with Qt for WebAssembly (or port the drawing to a small JS/Canvas page) for docs/public/demos/sorting/.
Acceptance criteria
- Compared elements are highlighted
- At least three new algorithms
- Docs page embeds a live demo instead of GIFs
Repository audit, November 2026 · Phase 9 · New features · evidence: found by code reading · ref core-cpp-057
Generated by Claude Code
- Dominant language
- C++
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ibra-kdbra/Math-Problems#367 ·
All issues in ibra-kdbra/Math-Problems
Similar issues
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backOpendifficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NatronGitHub/openfx-supportext#311 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CachyOS/packageinstaller#211 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · 1 comment ·
Maintainers usually reply within 1 day
-
Good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100