-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem proposal] Unionfind with Potential #1194
Comments
Thank you! Each vertex has values [Query 1] [Query 2] |
Seems nice, but to compute the inverse of affine would require computation of modulo inverse, which would make the time complexity increase from |
this problem already exists here https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DSL_1_B if you want to test your library on it |
The problem I proposed was flawed. The fact that a cycle was formed where the composition is not the identity map only determines the values at the vertices of the cycle and does not necessarily indicate a contradiction. |
I would like to propose assigning invertible (2,2) matrices to vertices and edges. Finding the inverse of all matrices can be done in On the other hand, in competitive programming problems, I think groups are often commutative groups or sets of affine transformations in the form of Furthermore, even if there are problems similar to those on AOJ, it would be fine to place useful problems all in the Library Checker. |
So if I understand correctly, entry of matrix on vertices would be some variable while entry of matrix on edges would be some constant? |
Yes |
Problem 1未知の整数列
Problem 2
Problem 1There is an unknown sequence of integers
Problem 2There is an unknown sequence of
|
I think I can prepare them |
Thank you, and I appreciate your help. If you have any questions about the preparations, please feel free to ask. |
how should we naming these two problem? I was thinking using
or maybe specify which group are used in (...)? In such case, what should it be? (I'm not very familiar with abstract algebra) |
How about |
If you want to avoid calculating the inverse, you can include the constraint |
Problem name: Unionfind with Potential
Problem
Given a graph with$N$ vertices and $0$ edges, each vertex have some weight $w_v$ on it. Process the following $Q$ queries in order:
Solution
Maintain difference of$w_v$ and $w_{p_v}$ in Unionfind.
Constraint
Note / Disucussion
The text was updated successfully, but these errors were encountered: