Submit Search
Upload
TopCoder Marathon Match 92: Lighting (yowa)
•
1 like
•
599 views
Y
yowaken
Follow
TopCoder marathon Match 92: Lighting
Read less
Read more
Technology
Report
Share
Report
Share
1 of 17
Download now
Download to read offline
Recommended
2013 TCO Marathon Round 2 (yowa)
2013 TCO Marathon Round 2 (yowa)
yowaken
TopCoder Marathon Match ConstraindPermutation 解の変更方法の一案
TopCoder Marathon Match ConstraindPermutation 解の変更方法の一案
yowaken
AtCoder 北大日立マラソン 2nd 参加メモ (yowa)
AtCoder 北大日立マラソン 2nd 参加メモ (yowa)
yowaken
2014 TCO Marathon Round 3 (yowa)
2014 TCO Marathon Round 3 (yowa)
yowaken
2014 TCO Marathon Round 1 (yowa)
2014 TCO Marathon Round 1 (yowa)
yowaken
2013 TCO Marathon Round 3 (yowa)
2013 TCO Marathon Round 3 (yowa)
yowaken
TopCoder Marathon Match 74 (yowa)
TopCoder Marathon Match 74 (yowa)
yowaken
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Recommended
2013 TCO Marathon Round 2 (yowa)
2013 TCO Marathon Round 2 (yowa)
yowaken
TopCoder Marathon Match ConstraindPermutation 解の変更方法の一案
TopCoder Marathon Match ConstraindPermutation 解の変更方法の一案
yowaken
AtCoder 北大日立マラソン 2nd 参加メモ (yowa)
AtCoder 北大日立マラソン 2nd 参加メモ (yowa)
yowaken
2014 TCO Marathon Round 3 (yowa)
2014 TCO Marathon Round 3 (yowa)
yowaken
2014 TCO Marathon Round 1 (yowa)
2014 TCO Marathon Round 1 (yowa)
yowaken
2013 TCO Marathon Round 3 (yowa)
2013 TCO Marathon Round 3 (yowa)
yowaken
TopCoder Marathon Match 74 (yowa)
TopCoder Marathon Match 74 (yowa)
yowaken
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
Hiroshi Tomioka
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
FumieNakayama
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
sugiuralab
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
FumieNakayama
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
博三 太田
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
Hiroki Ichikura
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
UEHARA, Tetsutaro
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
Yuki Kikuchi
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
akihisamiyanaga1
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
More Related Content
Recently uploaded
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
Hiroshi Tomioka
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
FumieNakayama
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
sugiuralab
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
FumieNakayama
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
博三 太田
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
Hiroki Ichikura
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
UEHARA, Tetsutaro
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
Yuki Kikuchi
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
akihisamiyanaga1
Recently uploaded
(9)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
Featured
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
Featured
(20)
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
TopCoder Marathon Match 92: Lighting (yowa)
1.
TopCoder Marathon Match
92 Lighting 参加メモ @yowa
2.
どんな問題? ● 壁のある部屋にライトを置いて、できるだけ部屋全 体を照らしたい – 部屋サイズS:
10~50 – ライトの数L: 2~10 – ライト半径D: 2~10 – 壁である確率p: 0.1~0.3 ● スコア: 照らしてる割合
3.
やったこと ● 大ざっぱなライトの配置を決める – ライト位置を各セルの中心・角・辺中央に限定 –
照らす範囲もすごい雑に計算 – Greedy に配置した後、焼きなまし ● 焼きなましの近傍: ライトを1つ任意の位置に移動する ● 位置を微調整する – 照らす範囲の計算をもうちょい細かく – 焼きなまし ● 近傍: ライトを現位置から±1セル分以内で動かす
4.
今回の問題のキモ(?) ● スコア計算をどう実装するか? – 複数ライトが照らしている面積の和(union)を求める
5.
スコア計算の詳細(定義) ● 各セルをf^2個のサブセルに分割(分割数 f=100) ● サブセルの中央にライトの光が届いていれば、そ のサブセル全体が照らされているとみなす ●
光が届く⇔ライトとの距離がD以内、かつ ライトへの線分が、壁と交わらない (壁に接するのもアウト)
6.
スコア計算の(公式テスタの)実装 ● すべてのサブセル(= f^2・S^2)について ●
すべてのライト(= L)からの線分が ● すべての壁(= p・S^2) と交差しないか確かめる ● → f^2・p・L・S^4 回の交差判定
7.
スコア計算の(公式テスタの)実装 ● すべてのサブセル(= f^2・S^2)について ●
すべてのライト(= L)からの線分が ● すべての壁(= p・S^2) と交差しないか確かめる ● → f^2・p・L・S^4 回の交差判定 重い
8.
スコア計算の実装 ● 公式テスタ→ひどいケースは1回で十数秒かかる ● 焼きなましなどをやりたい → スコア計算は何万回と行う必要がある ● 効率化・簡略化による高速化が不可避
9.
スコア計算でやったこと ● 部屋を(サブセルではなく)縦に細くスライスする
10.
スコア計算でやったこと ● 部屋を(サブセルではなく)縦に細くスライスする ● 一つのライトが照らす範囲
≒ – 各スライスについて – 各壁がつくる影の区間を[y_min, y_max]で求め – すべての壁について union をとって、 – 反転(陰→陽)したもの
11.
スコア計算でやったこと ● 部屋を(サブセルではなく)縦に細くスライスする ● 一つのライトが照らす範囲
≒ – 各スライスについて – 各壁がつくる影の区間を[y_min, y_max]で求め – すべての壁について union をとって、 – 反転(陰→陽)したもの ● 複数のライトが照らす範囲 ≒ – スライスごとに、各ライトが照らす範囲を union
12.
計算量? ● サブセルの縦方向の分割が減ったけど – 区間の
union が O(1) じゃないぶん増えた – ここは相殺する感じ ● おおまかに、元の計算量の f^2 が、 スライス分割数 f になる、くらいの改善?
13.
計算量 ? ● 前ページの計算量 –
ライトが照らす範囲を毎回計算する前提 ● 一度計算したライト位置についてはメモしておく ● 全部メモ済ならば、 – すべてのライト(= L)について – すべてのスライス(= f・S)における – 照らす範囲(高々S+2個の区間)を union する ● ので、2f・L・S^2 とかかなあ?
14.
精度を犠牲に高速化 ● セルごとの分割数 f
= 100 を減らす ● 最初のGreedy&焼きなましでは f = 2 で ● 次の微調整ターンでは f = 10 で
15.
やらなかったこと ● 厳密なスコアの計算 – f
= 100 じゃないと正確じゃないけど仕方ないね – いまになって出力を眺めたら、円の角が欠けてる例が 散見されて悲しみを覚えた こっちに 置ける のに…
16.
やらなかったこと ● 厳密なスコアの計算 – f
= 100 じゃないと正確じゃないけど仕方ないね – いまになって出力を眺めたら、円の角が欠けてる例が 散見されて悲しみを覚えた ● 小さいケースで厳密解 – Dが小、 L が少など:円が互いに交わらない解が存在 – Dが小 → 範囲内の壁状況のパターンも限定的 – 全パターンの網羅が可能のはず
17.
まとめ Splatoon っぽい…… Splatoon っぽくない?
Download now