This commit is contained in:
2026-02-24 12:12:12 +07:00
parent b7df98a55c
commit c2529abe7f
32 changed files with 77 additions and 182 deletions
Binary file not shown.
+2 -2
View File
@@ -68,8 +68,8 @@ void run_exp(void) {
fprintf(f, "# N Radix Heap Bubble \n"); fprintf(f, "# N Radix Heap Bubble \n");
int n = 50000,end=MILLION,step = n; int n = MILLION,end=MILLION,step = 50000;
for (;n<end;n+=step){ for (;n<=end;n+=step){
uint32_t *arr = (uint32_t*)malloc(sizeof(uint32_t) * n); uint32_t *arr = (uint32_t*)malloc(sizeof(uint32_t) * n);
+24
View File
@@ -0,0 +1,24 @@
#####################################################
set terminal pngcairo size 900,600 font "Arial,12"
set output 'result_dual.png'
set encoding utf8
set grid xtics ytics ls 1 lc rgb "#bbbbbb" lw 1 dt 2
set title "Radix, Heap и Bubble (Log scale)"
set ylabel "Время выполнения, с"
set xtics rotate by 90 right
set logscale y 10
set format y "%.3f"
set key top left box opaque
set yrange [0.001:*] # минимальное >0 для логарифма
set ytics 4
set xrange [50:1000]
set xtics 50
plot 'table-.dat' using ($1/1000):2 with lp pt 9 ps 1 lw 2 lc rgb "red" title "Radix", \
'table-.dat' using ($1/1000):3 with lp pt 7 ps 1 lw 2 lc rgb "blue" title "Heap", \
'table-.dat' using ($1/1000):4 with lp pt 5 ps 1 lw 2 lc rgb "#00CC00" title "Bubble"
unset multiplot
Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.
+21
View File
@@ -0,0 +1,21 @@
# N Radix Heap Bubble
50000 0.005061 0.012689 6.092187
100000 0.008732 0.029754 40.427205
150000 0.022931 0.084427 99.451828
200000 0.028459 0.115050 178.078532
250000 0.036596 0.146176 256.123327
300000 0.026082 0.114544 364.379254
350000 0.028501 0.127360 455.556741
400000 0.055024 0.239221 500.093542
450000 0.035013 0.140892 747.245884
500000 0.084967 0.384743 1048.285032
550000 0.068909 0.252855 1164.834164
600000 0.087081 0.428985 1515.998724
650000 0.070355 0.322971 1608.263957
700000 0.070045 0.332604 1883.855704
750000 0.069788 0.326656 2177.522349
800000 0.088207 0.456468 1850.703608
850000 0.064560 0.277249 2044.421354
900000 0.086789 0.443723 2273.636972
950000 0.096368 0.382605 2464.046742
1000000 0.068228 0.352989 2893.217010
+20
View File
@@ -0,0 +1,20 @@
# N Radix Heap Bubble
50000 0.005061 0.012689 6.092187
100000 0.008732 0.029754 40.427205
150000 0.022931 0.084427 99.451828
200000 0.028459 0.115050 178.078532
250000 0.036596 0.146176 256.123327
300000 0.026082 0.114544 364.379254
350000 0.028501 0.127360 455.556741
400000 0.055024 0.239221 500.093542
450000 0.035013 0.140892 747.245884
500000 0.084967 0.384743 1048.285032
550000 0.068909 0.252855 1164.834164
600000 0.087081 0.428985 1515.998724
650000 0.070355 0.322971 1608.263957
700000 0.070045 0.332604 1883.855704
750000 0.069788 0.326656 2177.522349
800000 0.088207 0.456468 1850.703608
850000 0.064560 0.277249 2044.421354
900000 0.086789 0.443723 2273.636972
950000 0.096368 0.382605 2464.046742
+1
Submodule 1Y-2H/gameoflife added at feb40df734
-86
View File
@@ -1,86 +0,0 @@
---
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: false
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakStringLiterals: true
ColumnLimit: 80
CompactNamespaces: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 8
Cpp11BracedListStyle: true
DerivePointerAlignment: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false
IncludeBlocks: Preserve
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 4
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
...
Binary file not shown.
Binary file not shown.
Binary file not shown.
-93
View File
@@ -1,93 +0,0 @@
# lab-rodionov-iv522s18
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
* [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
* [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command:
```
cd existing_repo
git remote add origin https://git.csc.sibsutis.ru/trpo2026/lab-rodionov-iv522s18.git
git branch -M master
git push -uf origin master
```
## Integrate with your tools
* [Set up project integrations](https://git.csc.sibsutis.ru/trpo2026/lab-rodionov-iv522s18/-/settings/integrations)
## Collaborate with your team
* [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
* [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
* [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
* [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
* [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)
## Test and Deploy
Use the built-in continuous integration in GitLab.
* [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/)
* [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
* [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
* [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
* [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
***
# Editing this README
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
## Suggestions for a good README
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
## Name
Choose a self-explaining name for your project.
## Description
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
## Badges
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
## Visuals
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
## Installation
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
## Usage
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
## Support
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
## Roadmap
If you have ideas for releases in the future, it is a good idea to list them in the README.
## Contributing
State if you are open to contributions and what your requirements are for accepting them.
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
## Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
## License
For open source projects, say how it is licensed.
## Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
Binary file not shown.
Submodule 1Y-2H/trpo/lab-rodionov-iv522s18 updated: 5553e1330f...35320e1cfb
Submodule 1Y-2H/trpo/merge/1-merge-ff added at 5cbd705465
Submodule 1Y-2H/trpo/merge/2-merge-no-ff added at 4461ba6aeb
Submodule 1Y-2H/trpo/merge/3-merge-dirty added at 9dd1208713
Submodule 1Y-2H/trpo/merge/4-rebase-no-conflict added at 0458f65e61
Submodule 1Y-2H/trpo/merge/5-merge-conflict-easy added at 7b759e5389
Submodule 1Y-2H/trpo/merge/6-rebase-conflict-easy added at c0d1d48901
Submodule 1Y-2H/trpo/merge/7-merge-conflict-hard added at 0f527dec43
Submodule 1Y-2H/trpo/merge/8-rebase-conflict-hard added at f20cd7c28e