How r15h1-201/dsa-in-c works
Allsort is a small interactive C sorting program: the user enters an array, selects an algorithm, and sees the sorted values and complexity information. The single source file owns input, menu dispatch, the five algorithms, and output; the graph keeps these distinct runtime responsibilities visible without implying they are separate modules. Relationships shown are explicit calls or menu dispatches in the excerpt. There are no external services or persistent stores.
Main entry points: allsort.c Algorithm menu
Components 9
CLI workflow
- Array input
allsort.c - Algorithm menu
allsort.c - Results display
allsort.c
Sorting algorithms
- Bubble sort
allsort.c - Insertion sort
allsort.c - Selection sort
allsort.c - Merge sort
allsort.c - Quick sort
allsort.c
Other components
- User
Connections 10
- User → Array input: enters values
allsort.c - Array input → Algorithm menu: continues to
allsort.c - User → Algorithm menu: chooses method
allsort.c - Algorithm menu → Bubble sort: dispatches
allsort.c - Algorithm menu → Insertion sort: dispatches
allsort.c - Algorithm menu → Selection sort: dispatches
allsort.c - Algorithm menu → Merge sort: dispatches
allsort.c - Algorithm menu → Quick sort: dispatches
allsort.c - Algorithm menu → Results display: displays results
allsort.c - User → Results display: views output
allsort.c