diff options
| author | KunoiSayami <[email protected]> | 2023-04-19 14:26:52 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2023-04-19 14:26:52 +0800 |
| commit | 32d06031ceb10e99a85297ce43b17099741ce3bc (patch) | |
| tree | e3db10f5d2112fc9f24528bde18f5719ee678bbb /expt_0722.cpp | |
| parent | 2a1d2fee4fcb7fd39454770ef5548ca4cf94dc76 (diff) | |
feat: Add experimental content
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'expt_0722.cpp')
| -rw-r--r-- | expt_0722.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/expt_0722.cpp b/expt_0722.cpp index eb1ffed..db4b833 100644 --- a/expt_0722.cpp +++ b/expt_0722.cpp @@ -1,3 +1,22 @@ +// Experimental content: test scale for element cell +/* +Sample output: +scale: 2, max: 7 2: 339 3: 86 4: 27 5: 13 6: 2 7: 2 +scale: 3, max: 6 2: 287 3: 70 4: 18 5: 2 6: 1 +scale: 4, max: 5 2: 257 3: 43 4: 14 5: 3 +scale: 5, max: 5 2: 241 3: 46 4: 6 5: 1 +scale: 6, max: 4 2: 226 3: 26 4: 3 +scale: 7, max: 4 2: 188 3: 26 4: 1 +scale: 8, max: 4 2: 182 3: 20 4: 3 +scale: 9, max: 4 2: 165 3: 17 4: 3 +scale: 10, max: 4 2: 154 3: 16 4: 1 +scale: 11, max: 4 2: 153 3: 9 4: 1 +scale: 12, max: 4 2: 127 3: 11 4: 1 +scale: 13, max: 3 2: 135 3: 5 +scale: 14, max: 3 2: 118 3: 7 +scale: 15, max: 3 2: 129 3: 4 +scale: 16, max: 4 2: 108 3: 5 4: 1 + */ #include <algorithm> #include <cassert> #include <cmath> @@ -5,7 +24,7 @@ #include <iostream> #include <vector> -constexpr size_t length = 1048576; +constexpr size_t length = 2097152; std::vector<unsigned long long> population_vector, sample_vector, original_vector; // std::vector<std::vector<unsigned long long>> result_storage; @@ -91,6 +110,8 @@ int main(int _argc, char const *_argv[]) { ; fclose(file); + // printf("%zu %zu\n", population_vector.size(), length); + assert(population_vector.size() == length); original_vector = population_vector; |
