This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
usaco-guide/content/6_Plat/Sqrt.mdx

62 lines
1.7 KiB
Text
Raw Normal View History

2020-06-28 03:56:39 +00:00
---
id: sqrt
title: "Square Root Decomposition"
author: Benjamin Qi
description: "?"
frequency: 1
2020-06-30 20:25:02 +00:00
prerequisites:
-
2020-06-28 03:56:39 +00:00
---
2020-06-28 16:03:46 +00:00
import { Problem } from "../models";
export const metadata = {
problems: {
fst: [
new Problem("CF", "Tree Queries", "contest/1254/problem/D", "Hard", false, [], ""),
2020-06-30 20:25:02 +00:00
new Problem("wcipeg", "COI 08-Otoci", "https://wcipeg.com/problem/coi08p2", "Hard", false, ["HLD"], "Editorial rebuilds HLD after certain # of updates ..."),
new Problem("Old Gold", "Fencing the Herd", "534", "Very Hard", false, ["Convex hull"], ""),
2020-06-28 16:03:46 +00:00
new Problem("DMOJ", "Fluid Dynamics", "dmopc19c7p7", "Very Hard", false, [], ""),
new Problem("Plat", "At Large", "793", "Very Hard", false, [], ""),
],
block: [
new Problem("DMOJ", "Arithmetic Subtrees", "wac1p7", "Very Hard", false, [], ""),
],
other: [
2020-06-30 20:25:02 +00:00
new Problem("Plat", "Train Tracking", "841", "Insane", false, [], ""),
2020-06-28 16:03:46 +00:00
]
}
};
2020-06-28 03:56:39 +00:00
2020-06-28 16:03:46 +00:00
## On Line
2020-06-28 03:56:39 +00:00
2020-06-28 16:03:46 +00:00
processing sqrt queries / updates at a time
2020-06-28 03:56:39 +00:00
2020-06-28 16:03:46 +00:00
partitioning into sqrt blocks (each block can have some sort of data structure ...)
optimization tips? (ez to get TLE with bad constant ..., can get AC with suboptimal complexity ...)
<problems-list problems={metadata.problems.fst} />
## Mo's
<resources>
<resource source="CF" title="Mo's Algorithm" url="blog/entry/7383"></resource>
<resource source="CF" title="Mo's on Trees" url="blog/entry/43230"></resource>
</resources>
2020-06-28 03:56:39 +00:00
2020-06-28 16:03:46 +00:00
[A2OJ](https://a2oj.com/category?ID=318)
2020-06-28 04:01:28 +00:00
2020-06-28 16:03:46 +00:00
## Other
2020-06-28 03:56:39 +00:00
2020-06-28 16:03:46 +00:00
### Block Tree
2020-06-28 03:56:39 +00:00
2020-06-28 16:03:46 +00:00
<problems-list problems={metadata.problems.block} />
2020-06-28 03:56:39 +00:00
2020-06-28 16:03:46 +00:00
<resources>
<resource source="CF" title="Block Tree" url="blog/entry/46843"></resource>
</resources>
2020-06-28 03:56:39 +00:00
2020-06-28 16:03:46 +00:00
### Train Tracking
2020-06-28 03:56:39 +00:00
<problems-list problems={metadata.problems.other} />