期末考:0622-1114405056-尤靖崵 - #1332
Open
d14405056-tech wants to merge 7 commits into
Open
期末考:0622-1114405056-尤靖崵 #1332d14405056-tech wants to merge 7 commits into
d14405056-tech wants to merge 7 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds complete solutions, documentation, and test suites for two assignments: "資料清理" (Data Cleaning) and "二分搜尋與線性搜尋的比較分析" (Binary Search vs Linear Search). For each problem, the submission includes a well-documented implementation, comprehensive tests (including intentional failure cases), and detailed logs and instructions. The binary search task also features a radar chart visualization for multi-dimensional comparison.
A. 資料清理 (Data Cleaning):
solution.pyimplementing order-preserving deduplication, divisibility filtering (D=4), sorting, and formatted output, with extensive docstrings and comments.README.mdwith problem description, algorithm explanation, complexity analysis, sample cases, and usage instructions.AI_LOG.mddocumenting the development process, requirements, interface, edge cases, and acceptance criteria.test_solution.pywith several test cases, including a purposely failing test to demonstrate red/green test states.B. 二分搜尋與線性搜尋的比較分析 (Binary Search vs Linear Search):
solution.pyimplementing both search algorithms, performance measurement withtimeit, and result formatting, with detailed docstrings.README.mdwith problem breakdown, complexity analysis, radar chart dimension explanation, sample outputs, and usage.AI_LOG.mdwith a thorough log of requirements, design decisions, edge case handling, and function signatures.plot.pyto generate a radar chart comparing the two algorithms across five normalized dimensions, saving the output asassets/radar.png.test_solution.pywith tests for large and custom arrays, and for the presence/absence of the search target.Key changes by theme:
資料清理 (Data Cleaning):
solution.py, with clear comments and edge case handling.test_solution.py.README.mdandAI_LOG.md. [1] [2]二分搜尋與線性搜尋 (Binary Search vs Linear Search):
solution.py.plot.pyfor multi-dimensional algorithm comparison, with automated output toassets/radar.png.README.md,AI_LOG.md, andtest_solution.py. [1] [2] [3]