Skip to content

Conversation

@creezed
Copy link

@creezed creezed commented Dec 22, 2025

Дедюков Егор гр. 5098
Прошу выдать 6 лабораторную работу

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.
@Dovgalyuk
Copy link
Owner

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

@Dovgalyuk Dovgalyuk closed this Dec 23, 2025
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