Repository navigation
perf(linked-list): measure scaling and link integrity of AddTwoNumbers (R50-T049) - #97
Open
aniruddha-bongale wants to merge 1 commit into
Open
aniruddha-bongale wants to merge 1 commit into
aniruddha-bongale wants to merge 1 commit into
Conversation
4 tasks
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.
Description
Measure the scaling behavior of$L = \max(M, N)$ , distinguishing theoretical worst-case claims from empirical observations, add regression tests with separate node link and value assertions on three distinct nodes $A \to B \to C$ and smallest supported lists, and implement an automated benchmark and test runner in
AddTwoNumbersinData-Structures/Linked-List/AddTwoNumbers.jswhile validating algorithm correctness. Add comprehensive complexity documentation naming the input size variablework/R50-T049/check.pysaving metrics towork/R50-T049/results.json.Related Issue
Fixes: #49
Type of Change
Changes Made
Data-Structures/Linked-List/AddTwoNumbers.jsdocumenting the input size variableNodealongsideAddTwoNumbersfromData-Structures/Linked-List/AddTwoNumbers.js.Data-Structures/Linked-List/test/AddTwoNumbers.test.js:work/R50-T049/check.pyto run native tests, verify link and value assertions, execute 5 repetitions per size with fixed deterministic pseudo-random seeds, measure median and range execution times isolated from process and I/O overhead, and record results inwork/R50-T049/results.json.Screenshots / Recordings
All 4 unit tests for$L \in {100, 1000, 10000}$ passed correctness checks.
AddTwoNumberspassed cleanly. All 5 repetitions across sizesTesting
npm test -- Data-Structures/Linked-List/test/AddTwoNumbers.test.js- all 4 tests passed.python3 work/R50-T049/check.py- scaling and fixture assertions verified.Checklist
Additional Notes
Student: Aniruddha Bongale (Enrollment: E26B07F0827)
Task ID: R50-T049