Enviar pesquisa
Carregar
勝手に解説 TopCoder Marathon Match 82 ColorLinker
•
0 gostou
•
1,236 visualizações
Sho IIZUKA
Seguir
Tecnologia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 16
Baixar agora
Baixar para ler offline
Recomendados
【Deep Learning (MIT Press)】線形代数 2.1~2.7
【Deep Learning (MIT Press)】線形代数 2.1~2.7
京都大学人工知能研究会 KaiRA
最近遊んだ Wii Uの 3つのソフトの感想
最近遊んだ Wii Uの 3つのソフトの感想
teapipin
これからの時代に! パソコン離れの中のパソコン選び
これからの時代に! パソコン離れの中のパソコン選び
teapipin
ツイッター調査:約173万ツイートを調査して分かったTwitterの利用動向 #twtr_hack
ツイッター調査:約173万ツイートを調査して分かったTwitterの利用動向 #twtr_hack
teapipin
HDDの返品保証を使ってみた
HDDの返品保証を使ってみた
Sho IIZUKA
FM-indexによる全文検索
FM-indexによる全文検索
Sho IIZUKA
円と円の外接線の求め方
円と円の外接線の求め方
Sho IIZUKA
円と円の交点の求め方
円と円の交点の求め方
Sho IIZUKA
Recomendados
【Deep Learning (MIT Press)】線形代数 2.1~2.7
【Deep Learning (MIT Press)】線形代数 2.1~2.7
京都大学人工知能研究会 KaiRA
最近遊んだ Wii Uの 3つのソフトの感想
最近遊んだ Wii Uの 3つのソフトの感想
teapipin
これからの時代に! パソコン離れの中のパソコン選び
これからの時代に! パソコン離れの中のパソコン選び
teapipin
ツイッター調査:約173万ツイートを調査して分かったTwitterの利用動向 #twtr_hack
ツイッター調査:約173万ツイートを調査して分かったTwitterの利用動向 #twtr_hack
teapipin
HDDの返品保証を使ってみた
HDDの返品保証を使ってみた
Sho IIZUKA
FM-indexによる全文検索
FM-indexによる全文検索
Sho IIZUKA
円と円の外接線の求め方
円と円の外接線の求め方
Sho IIZUKA
円と円の交点の求め方
円と円の交点の求め方
Sho IIZUKA
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
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
Mais conteúdo relacionado
Destaque
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
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
Destaque
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
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...
勝手に解説 TopCoder Marathon Match 82 ColorLinker
1.
MM82 ColorLinker 勝手に解説
2.
問題概要(1/6) • N*Nのグリッドが与えられる (20 N 60) • 初期状態では、各々のセルは色が塗ら れているか、塗られていないかのどち らか (色の種類は2∼5)
3.
問題概要(2/6) • あなたが行える操作 • 任意のセルに、任意の色を塗る •
ただし1つのセルに複数の色を塗るこ とも可能 • 初期状態で色が塗られていたセルに も色を塗ることが可能
4.
問題概要(3/6) • タスク • 同じ色のすべてのセルが、上下左右で 連結になるように色を塗る •
ただし、色を塗るとペナルティが加算 される(計算方法は後述) • なるべくペナルティを少なくせよ
5.
問題概要(4/6)
6.
問題概要(5/6) • ペナルティの計算方法 • 整数p
(N p 8*N) が与えられる • 各々のセルについて、塗られている色 の数をcとしたとき そのセルのペナルティ = c+c*(c-1)*p • すべてのセルのペナルティを合計する
7.
問題概要(6/6) • 制約 • 時間制限
10秒 (2005年に発売されたXeon 3.6GHz) • メモリ制限 1024MB • 正式な問題文はこちら
8.
問題からわかること • そのセルのペナルティ =
c+c*(c-1)*p • c: 塗られている色の数 • N p 8*N
9.
問題からわかること • 1色で塗ったとき • c+c*(c-1)*p
= 1
10.
問題からわかること • 2色で塗ったとき • c+c*(c-1)*p
= 2+2*N ∼ 2+16*N • 複数の色で塗るとペナルティがヤバい • これを避けるためなら かなり遠回りしてよい
11.
私の解法 • とにかく繋げてみた • これはマズイ
12.
私の解法 • ダイクストラっぽい方法で重ね塗りを 避けるようにしてみた • 同じ色のセルに移動
→ コスト0 • 空白のセルに移動 → コスト1 • 別の色が塗られているセルに移動 → c+c*(c-1)*p
13.
私の解法 ✌('ω'✌ )三✌('ω')✌三( ✌'ω')✌
14.
私の解法 • 改善が期待できるところ • つなぐ順番を変えれば交差の回数を 減らせる場合があった •
「つなぐ順番を焼きなまし法で決め れば良いんじゃね?」 • 少しだけスコアが改善された
15.
私の解法 • 「高速化して試行回数を増やせばスコ ア上がるかな?」 • 時間を100倍かけて実行してみたが、 ほとんどスコア上がらず •
高速化は諦めて別の改善方法を考えた が、思いつかずタイムアップ
16.
他の人の解法 • 上位の人たちは、色の種類が高々5種類 しかないことも利用しているっぽい? • TopCoderのForumでネタばらし会が 開催中 •
日本の人の投稿は #MM82 で検索
Baixar agora