[1.0 algorithm] Rework problem 257 interactor scoring (k-based, compressed)#149
Merged
Merged
Conversation
Contributor
|
Hi @whuang369. Thanks for the contribution! Please also attach the |
Tune the "Omkar and Modes" (257) interactive grader so scores discriminate solution quality and leave room above the current solution pool: - Switch dynamic-scoring thresholds from n-based (k_base=n, k_zero=2n) to k-based, where k = number of distinct value-blocks in the array (k_base = C_BASE*k, k_zero = C_ZERO*k). This rewards exploiting the sorted/mode structure instead of trivially scanning n positions. - Score on a single unbounded quadratic curve; report the raw (unbounded) value and clip the bounded score to 100. r is floored at 0 before squaring so the curve stays monotonic and non-negative past k_zero. - Set C_BASE=1, C_ZERO=12. C_BASE=1 anchors full score at the information-theoretic floor (~k queries to locate k blocks), which is unreachable in practice, so the best current solutions top out around 74 (std divide-and-conquer ~70) leaving real improvement space; the pool spreads from 0 to 74 (avg ~34) instead of clustering near full marks. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
7ae1252 to
87afa70
Compare
Contributor
Author
Hi @joyemang33 , thank you for your advise and information! I've updated the grading parameters for this problem, and ran harbor over this problem. Attached images are the new grading rules and harbor trial!
|
Contributor
|
LGTM thanks! |
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.


Tune the "Omkar and Modes" (257) interactive grader so scores discriminate solution quality instead of clustering near full marks:
Summary
Type of Change
Testing
Checklist
CI Validation (for new problems)