Skip to content

Conversation

@creezed
Copy link

@creezed creezed commented Dec 23, 2025

  • Разработать интерфейс модуля для работы со строками. Основные операции: создание, конкатенация, копирование, поиск подстроки, сравнение двух строк, получение указателя на массив символов
  • Разработать класс "срез строки", имеющий такой же интерфейс, как строка, но не хранящий собственных данных, а только ссылку на фрагмент существующей строки.
  • Реализовать описанные функции
  • Реализовать поиск с помощью алгоритма Бойера-Мура

creezed and others added 30 commits September 15, 2025 15:08
- Add Kruskal's algorithm implementation in lab4.cpp - Implement Disjoint Set Union (DSU) helper struct - Add input.txt for graph testing - Update CMakeLists.txt to build and test Lab4CPPTemplate
…build

Cast -1 to size_t explicitly to match variable type & Fix -Werror=sign-compare build failure on Linux runner
- Implement operator[] in Vector for O(1) access without copying
- Refactor Graph to use direct reference access via operator[]
- Update Graph::add_vertex and Graph::remove_vertex to avoid row copying
- Rewrite lab4 test logic to populate edges from graph traversal
- Update CMake test to verify exact output "MST Weight: 19"
- Allocate memory for exactly 'm' edges instead of 'm * 2'
- Remove redundant boundary check in edge collection loop
- Ensure edge collection matches input size exactly
- Remove runtime check for edge count limit
- Trust input 'm' parameter as guaranteed by file format
- Add SplayTree class implementing string container interface
- Implement splay operation with zig-zig/zig-zag rotations
- Add methods: insert, contains, remove
- Register splay_tree.cpp in LibraryCPPClass CMake target
- Add functional and anti-O(N^2) load tests in LibraryCPPClass/Tests
- Create Lab5CPPClass for performance analysis
- Implement random data generator
- Compare SplayTree vs std::set insertion time
- Generate 'lab45results.txt' with ASCII bar chart
- Add CTest execution.
… benchmarks

- Add String and StringSlice classes to LibraryCPPClass
- Implement Boyer-Moore-Horspool algorithm for substring search
- Add unit tests for String operations
- Implement Lab6 benchmark comparing Custom String vs std::string
- Generate performance graph in lab6_results.txt
…ng_test.cpp

- Remove dependency on <cstring> in tests
- Add strings_are_equal and buffer_is_equal helper functions
- Fix CI build errors caused by missing std namespace members
@Dovgalyuk
Copy link
Owner

Принято.

@Dovgalyuk Dovgalyuk closed this Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants