kactl icon indicating copy to clipboard operation
kactl copied to clipboard

KTH Algorithm Competition Template Library (... eller KTHs AC-tillverkande lapp)

Results 70 kactl issues
Sort by recently updated
recently updated
newest added

I have tried to augment LinkCutTree with the subtree size, however I can't get it to work. I have added `int sz = 1;` as a field to `Node` and...

bug

Apparently the suffix array is a bit slow and has resulted in TLEs. One suggestion that came up in the AC discord server (https://discord.com/channels/555883512952258563/559415184826040340/809806400070483989) is splitting ```cpp for (int i...

For simple, short, linear implementation for Smallest Lexicalgraphical String Rotation which usually be solved in O(n log n) using Hash/Suffix Array/Suffix Tree/Suffix Automaton/DC3 Algo

In the randomized General Matching code, the code only knows how to extract a perfect matching, so we add up to N additional vertices before computing the matrix inverse which...

I think it might be beneficial to add a template that takes in N points of (x_i, y_i) and a value X and returns the value of f(X) where f...

This is my implementation of palindromic tree; a strings data structure that extracts all unique palindromic substrings and their frequencies. Obviously I'm open to suggestions on how to improve it...

I tried compiling the pdf using `make kactl` but the text in the math/geometry part of the pdf is broken as seen below. I am compiling on arch linux with...

bug
tex

https://gitlab.au.dk/BeyondBallmersPeak/kactl/-/blob/4fde3a49533621e4178d8dffa29bf0701fe8f8db/content/data-structures/WaveletTree.h Here is a good implementation of it. Here is another good implementation https://usaco.guide/problems/kattis-easy-query/solution

```c++ // Needs failure function of kmp to work, // automaton builds a string recognizer // Input : String `s`, First starting character `ch`, character size `charSize` (numbers of available...