-
### Question
If so, should NixOS strive to further minimize state and enhance its declarativity in the future?
### Candidates I'd like to get an answer from
_No response_
### Reminder of the Q&A …
-
木構造とは、N頂点をN-1本の辺で閉路がなく連結につなぐグラフのことである
幅優先探索
高さ0の頂点が全て探索される→高さ1の頂点が全て探索される...
https://atcoder.jp/contests/abc138/submissions/27937966
深さ優先探索 pypyでやると超遅くなる sys.setrecursionlimit(10000000)つけよう
dfs(…
-
セグメントツリー
セグ木に乗る代数系
モノイド 和 | 積 | AND | OR | XOR | min | max | gcd | lcm
演算 x + y | x * y | x & y | x | y | x ^ y | min(x, y) | max(x, y) | gcd(x, y) | lcm(x, y)
単位…
-
UnionFind
データのグループ化を素早く行う
not sameな頂点をN-1回つなげるとN頂点の木になる
UnionFind + スタック芸
https://atcoder.jp/contests/acl1/submissions/18374339 A - Reachable Towns
グラフの問題になる
G の各辺に対して、端点のうちどちらかを光らせることができる。光る頂点の…
-
分割統治法:部分問題を解き、その結果を利用して、問題全体を解く
メモ化再起:部分問題の計算結果を再利用する
を満たすアルゴリズム
以下のような性質が重要とされる。
元の問題は切り分けた部分問題の集合に含まれる。 (不変埋没原理)
部分問題の答えを用いて他の部分問題の答えを求める。 (漸化式、分割統治法、メモ化、不変埋没原理)
漸化式が用いるのは部分問題の答えのみであって、部分問題の…
-
ある状態を保つことを考える 全ての山を偶数に保つ
https://atcoder.jp/contests/caddi2018/submissions/14204617 D - Harlequin
状態数が多い場合は実験して勝ち筋を見る
https://atcoder.jp/contests/abc027/submissions/22310372 C-倍々ゲーム
Xの操作回数が偶数になった状…
-
There's a lot of work that needs doing to move this project forward. Feeling somewhat paralysed by considering, in isolation, what we _could_ do, I tried to write down what I thought were the core pri…
-
#375 gives some context for our flavor and high-level project goals, but I think individual contributors may not find this very actionable. Maybe we need something more focused about "how we write cod…
-
Working on this
-
In principles there is a sentence [The publication contains a conformance statement that is not to the EPUB Accessibility](https://github.com/w3c/publ-a11y/blob/e50ad271f3e41b391d4c62d62b1820bfe4a830…