feat(data):添加数据分组封装,简化元数据生成、多组数据生成和测试点范围确定 (#117)#118
Open
marscheng1 wants to merge 1 commit intoluogu-dev:masterfrom
Open
feat(data):添加数据分组封装,简化元数据生成、多组数据生成和测试点范围确定 (#117)#118marscheng1 wants to merge 1 commit intoluogu-dev:masterfrom
marscheng1 wants to merge 1 commit intoluogu-dev:masterfrom
Conversation
Open
Collaborator
|
总感觉现在参数的格式有点怪,换个方向排列会不会好一点? Data(
"test",
[
[
4,
['n','m','k'],
[("MIN", 1), ("MAX", 100), ("MMIN", 0), ("MMAX", 1000)],
[["MIN", "=", "k", "=", "n", "MAX"], ["MMIN", "=", "m", "=", "MMAX"]]
],
[
16,
['n','m','k'],
[("MIN", 100), ("MAX", 1000), ("MMIN", 1000), ("MMAX", 1000000)],
[["MIN", "=", "k", "=", "n", "MAX"], ["MMIN", "=", "m", "=", "MMAX"]]
],
]
) |
d4744b3 to
2727298
Compare
2f520f5 to
7056a5a
Compare
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.
封装数据生成的分组。将多组数据,多测试点,类似 m n 此类变量的生成封装起来,此时用户仅需输入 subtask 组数、数据组数、单个测试点内数据数、变量间关系、变量极值等参数便可自动生成足够强的元数据,然后用户便只需要使用其他方法生成数据中的数列、图、树等结构。这在面对数据量要求较多时十分有用。