Jumble
C/C++ implementations of data structures, algorithms, and common designs.
Install / Use
/learn @chynl/JumbleREADME
Jumble
C/C++ implementations of data structures, algorithms, and common designs.
| Name | Sources | Notes | |:----:|:-------:|-------| |SharedPtr|test .hpp|My own version of std::shared_ptr.| |UniquePtr|test .hpp|My own version of std::unique_ptr.| |Linked List|test .hpp|Doubly linked list and merge sort.| |Binary Heap|test .hpp|Heap implemented with complete binary tree.| |Hash Table|test .hpp|Hash table with conflicting entries appended to linked list.| |AVL Tree|test .hpp|Self-balancing binary search tree.| |Graph|test .hpp|Graph implemented with adjacency list and matrix.| |Sorting|test .hpp|Common sorting algorithms.| |N-Puzzle|test .hpp|A* search to solve the N-Puzzle problem.| |Dijkstra|test .hpp|Algorithm to find shortest path between nodes in a graph.| |MD5|test .hpp|MD5 hash function.| |Calculator|test .hpp .cpp|Infix arithmetic expression calculator based on recursive descent parser.| |Web Server|example .h .c|Single-threaded web server.| |Greeting|example .h .c|Funny ASCII art for a greeting.|
Installation
Build with CMake:
mkdir build
cd build
cmake ..
cmake --build .
C++ builds will be located at build/cpp. C++ implementations come with unit tests which can be run with CTest:
ctest --test-dir cpp
C builds will be located at build/c. C implementations don't have unit tests. Please run each binary individually:
./c/example_websvr
License
See the LICENSE file for license rights and limitations.
Related Skills
openpencil
2.1kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
ui-ux-pro-max-skill
61.3kAn AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
ui-ux-pro-max-skill
61.3kAn AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
onlook
25.1kThe Cursor for Designers • An Open-Source AI-First Design tool • Visually build, style, and edit your React App with AI
