Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
競プロに出てきそうなアルゴリズム
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
NearMeの技術発表資料です
PRO
July 11, 2022
Technology
0
160
競プロに出てきそうなアルゴリズム
NearMeの技術発表資料です
PRO
July 11, 2022
Tweet
Share
More Decks by NearMeの技術発表資料です
See All by NearMeの技術発表資料です
Tile38 Overview
nearme_tech
PRO
0
35
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
210
実践で使えるtorchのテンソル演算
nearme_tech
PRO
0
21
ローカルLLMを⽤いてコード補完を⾏う VSCode拡張機能を作ってみた
nearme_tech
PRO
0
440
初めてのmarimo (ハンズオン)
nearme_tech
PRO
0
34
ローカルLLM
nearme_tech
PRO
0
55
LlamaIndex Workflow: Build Practical AI Agents Fast
nearme_tech
PRO
0
34
Box-Muller法
nearme_tech
PRO
1
55
Kiro触ってみた
nearme_tech
PRO
0
410
Other Decks in Technology
See All in Technology
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
4
1.4k
SREのプラクティスを用いた3領域同時 マネジメントへの挑戦 〜SRE・情シス・セキュリティを統合した チーム運営術〜
coconala_engineer
2
770
Greatest Disaster Hits in Web Performance
guaca
0
290
GitHub Issue Templates + Coding Agentで簡単みんなでIaC/Easy IaC for Everyone with GitHub Issue Templates + Coding Agent
aeonpeople
1
260
Cosmos World Foundation Model Platform for Physical AI
takmin
0
970
1,000 にも届く AWS Organizations 組織のポリシー運用をちゃんとしたい、という話
kazzpapa3
0
180
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
93k
pool.ntp.orgに ⾃宅サーバーで 参加してみたら...
tanyorg
0
900
インフラエンジニア必見!Kubernetesを用いたクラウドネイティブ設計ポイント大全
daitak
1
390
コミュニティが変えるキャリアの地平線:コロナ禍新卒入社のエンジニアがAWSコミュニティで見つけた成長の羅針盤
kentosuzuki
0
130
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
320
CDKで始めるTypeScript開発のススメ
tsukuboshi
1
560
Featured
See All Featured
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.6k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
The browser strikes back
jonoalderson
0
420
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
88
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
740
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
From π to Pie charts
rasagy
0
130
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
340
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
460
It's Worth the Effort
3n
188
29k
Exploring anti-patterns in Rails
aemeredith
2
250
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
71k
Transcript
0 競プロに出てきそうなアルゴリズム 2022-07-08 第5回NearMe技術勉強会 Yuki Nonaka
1 目次 1. アルゴリズムについて 2. 計算量について 1
2 アルゴリズムとは あるタスクを達成するために設計された有限回の計算手順 例:線形探索、二分探索、ソートなど 2
3 アルゴリズムの例 問題:二次元空間にプロットされた点について、距離が一番短い2点を 求める ・考えつくもの for i in range(点の数): for
j in range(点の数): (2点間の距離を求める) 3
4 計算量 与えられたアルゴリズムがどの程度の時間で実行できるのかを半定 量的に表したもの。(オーダー記法) 例:O(n),O(n2) 4
5 計算量の例1 ・二次元空間にプロットされた点について、距離が一番短い2点を求め る 分割統治法だとO(nlog(n)) 5 1 2 3 4
5 1 2 3 4 5 計算量はn2/2 →O(n2)
6 計算量の例2 ・巡回セールスマン問題 全探索すると計算量はO(n!) →いろんな近似解法がある 多項式時間で計算できるアルゴリズムが 見つかっていないNP困難問題に属する 6 A C
B E D
7 参考文献 ・アルゴリズムとデータ構造 7
8 Thank you