docs: Add a short explanation for each sorting algorithm
#5 创建于 2025年10月12日
仓库指标
- 星标
- (0 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
To make the tool more educational, we should display a brief explanation of the algorithm that is currently selected in the dropdown. This helps users understand what they are visualizing.
Task:
Use an st.expander component in the sidebar, titled "About This Algorithm".
Inside the expander, write a simple if/elif/else block that checks which algorithm is selected.
Based on the selection, display a 1-2 sentence explanation of that algorithm. For example, if "Bubble Sort" is selected, show something like: "Bubble Sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order."
Write a similar short explanation for all 5-6 algorithms in the project.