Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5ed5f57

Browse files
1 parent0d3d508 commit5ed5f57

File tree

7 files changed

+185
-175
lines changed

7 files changed

+185
-175
lines changed

‎main/feed_json_updated.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎main/feed_rss_created.xml‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎main/feed_rss_updated.xml‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎main/geometry/manhattan-distance.html‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6784,6 +6784,12 @@
67846784

67856785

67866786

6787+
6788+
6789+
6790+
6791+
6792+
67876793

67886794

67896795

@@ -6844,6 +6850,10 @@
68446850

68456851

68466852

6853+
6854+
6855+
6856+
68476857

68486858

68496859

@@ -6856,7 +6866,7 @@
68566866
<ulclass="metadata page-metadata"data-bi-name="page info"lang="en-us"dir="ltr">
68576867

68586868
Last update:
6859-
<spanclass="git-revision-date-localized-plugin git-revision-date-localized-plugin-date"title="April 22, 202502:11:52 UTC">April 22, 2025</span>&emsp;
6869+
<spanclass="git-revision-date-localized-plugin git-revision-date-localized-plugin-date"title="August 11, 202508:42:20 UTC">August 11, 2025</span>&emsp;
68606870

68616871
<!-- Tags -->
68626872

@@ -6911,9 +6921,9 @@ <h2 id="rotating-the-points-and-chebyshev-distance">Rotating the points and Cheb
69116921
<divclass="arithmatex">$$|m| + |n| = \text{max}(|m + n|, |m - n|).$$</div>
69126922
<p>To prove this, we just need to analyze the signs of<spanclass="arithmatex">$m$</span> and<spanclass="arithmatex">$n$</span>. And it's left as an exercise.</p>
69136923
<p>We may apply this equation to the Manhattan distance formula to find out that</p>
6914-
<divclass="arithmatex">$$d((x_1, y_1), (x_2, y_2)) = |x_1 - x_2| + |y_1 - y_2| = \text{max}(|(x_1 + y_1) - (x_2 + y_2)|, |(x_1 -y_1) - (x_2 -y_2)|).$$</div>
6915-
<p>The last expression in the previous equation is the<ahref="https://en.wikipedia.org/wiki/Chebyshev_distance">Chebyshev distance</a> of the points<spanclass="arithmatex">$(x_1 + y_1,x_1 -y_1)$</span> and<spanclass="arithmatex">$(x_2 + y_2,x_2 -y_2)$</span>. This means that, after applying the transformation</p>
6916-
<divclass="arithmatex">$$\alpha : (x, y) \to (x + y,x -y),$$</div>
6924+
<divclass="arithmatex">$$d((x_1, y_1), (x_2, y_2)) = |x_1 - x_2| + |y_1 - y_2| = \text{max}(|(x_1 + y_1) - (x_2 + y_2)|, |(y_1 -x_1) - (y_2 -x_2)|).$$</div>
6925+
<p>The last expression in the previous equation is the<ahref="https://en.wikipedia.org/wiki/Chebyshev_distance">Chebyshev distance</a> of the points<spanclass="arithmatex">$(x_1 + y_1,y_1 -x_1)$</span> and<spanclass="arithmatex">$(x_2 + y_2,y_2 -x_2)$</span>. This means that, after applying the transformation</p>
6926+
<divclass="arithmatex">$$\alpha : (x, y) \to (x + y,y -x),$$</div>
69176927
<p>the Manhattan distance between the points<spanclass="arithmatex">$p$</span> and<spanclass="arithmatex">$q$</span> turns into the Chebyshev distance between<spanclass="arithmatex">$\alpha(p)$</span> and<spanclass="arithmatex">$\alpha(q)$</span>.</p>
69186928
<p>Also, we may realize that<spanclass="arithmatex">$\alpha$</span> is a<ahref="https://en.wikipedia.org/wiki/Spiral_similarity">spiral similarity</a> (rotation of the plane followed by a dilation about a center<spanclass="arithmatex">$O$</span>) with center<spanclass="arithmatex">$(0, 0)$</span>, rotation angle of<spanclass="arithmatex">$45^{\circ}$</span> in clockwise direction and dilation by<spanclass="arithmatex">$\sqrt{2}$</span>.</p>
69196929
<p>Here's an image to help visualizing the transformation:</p>
@@ -7014,7 +7024,7 @@ <h2 id="problems">Problems<a class="headerlink" href="#problems" title="Permanen
70147024

70157025
<ulclass="metadata page-metadata"data-bi-name="page info"lang="en-us"dir="ltr">
70167026
<spanclass="contributors-text">Contributors:</span>
7017-
<ulclass="contributors"data-bi-name="contributors"><li><ahref="https://github.com/NaimSS"title="NaimSS"data-bi-name="contributorprofile"target="_blank">NaimSS</a> (71.95%)</li><li><ahref="https://github.com/mhayter"title="mhayter"data-bi-name="contributorprofile"target="_blank">mhayter</a> (11.64%)</li><li><ahref="https://github.com/gabsrp2002"title="gabsrp2002"data-bi-name="contributorprofile"target="_blank">gabsrp2002</a> (11.64%)</li><li><ahref="https://github.com/izanbf1803"title="izanbf1803"data-bi-name="contributorprofile"target="_blank">izanbf1803</a> (3.7%)</li><li><ahref="https://github.com/adamant-pwn"title="adamant-pwn"data-bi-name="contributorprofile"target="_blank">adamant-pwn</a> (1.06%)</li></ul>
7027+
<ulclass="contributors"data-bi-name="contributors"><li><ahref="https://github.com/NaimSS"title="NaimSS"data-bi-name="contributorprofile"target="_blank">NaimSS</a> (71.95%)</li><li><ahref="https://github.com/mhayter"title="mhayter"data-bi-name="contributorprofile"target="_blank">mhayter</a> (11.64%)</li><li><ahref="https://github.com/gabsrp2002"title="gabsrp2002"data-bi-name="contributorprofile"target="_blank">gabsrp2002</a> (10.05%)</li><li><ahref="https://github.com/izanbf1803"title="izanbf1803"data-bi-name="contributorprofile"target="_blank">izanbf1803</a> (3.7%)</li><li><ahref="https://github.com/Shoot"title="Shoot"data-bi-name="contributorprofile"target="_blank">Shoot</a> (1.59%)</li><li><ahref="https://github.com/adamant-pwn"title="adamant-pwn"data-bi-name="contributorprofile"target="_blank">adamant-pwn</a> (1.06%)</li></ul>
70187028
</ul>
70197029

70207030
</article>

‎main/search/search_index.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp