Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
竸プロに出てきそうなアルゴリズム part2
Search
NearMeの技術発表資料です
PRO
September 05, 2022
Technology
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
竸プロに出てきそうなアルゴリズム part2
NearMeの技術発表資料です
PRO
September 05, 2022
More Decks by NearMeの技術発表資料です
See All by NearMeの技術発表資料です
Claude Code × git worktree で並列開発 (続き) -差分のサービスだけを併設する-
nearme_tech
PRO
1
61
Claude Code × git worktree で並列開発 — サブモジュール構成のリポジトリで成立させる —
nearme_tech
PRO
0
75
LLM + 強化学習
nearme_tech
PRO
0
34
PosthogのA/Bテスト機能の紹介
nearme_tech
PRO
1
98
AIフレンドリーなプロダクトに向けて
nearme_tech
PRO
2
67
初めてのLean言語
nearme_tech
PRO
0
110
Apache Airflow Workflow orchestration without turning cron into spaghetti
nearme_tech
PRO
2
42
実務で役立つ幾何学 ボロノイ図の基礎から グラフ・ネットワーク応用まで
nearme_tech
PRO
1
82
SQL/ID抽出タスクから考える 実践的なハルシネーション対策
nearme_tech
PRO
1
93
Other Decks in Technology
See All in Technology
形式手法を使って仕様をコーディングしよう
mikanichinose
0
160
【データ横丁主催】AI Agentがコンテキストを使って仕事をした後、何が残るのか― 組織の経験を次の判断に引き継ぐ「Agent Memory」
shisyu_gaku
2
300
AI 時代の Azure エンジニアリング ~ 私たちは何を磨き、何を任せるのか ~
chack411
1
230
認知負荷を吸収し、プロダクトをまたぐPR Preview基盤の設計事例
taiki45
2
560
オブザーバビリティを高める AI エージェント体験を考える / Designing AI Agent Experiences That Enhance Observability
aoto
PRO
1
120
AIに書かせて、プラットフォームで縛る ― EKSプラットフォームで実践した責任境界と権限設計
elmodev09
1
1.1k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
16
120k
20260929_AmazonGuardDutyの検出通知メールにAWS DevOpsAgentの調査結果を追加する
yhana
1
390
VS Code × GitHub Copilot での Fabric 開発
ryomaru0825
1
210
【Findyテック文化祭ワークショップ】新卒エンジニア&採用担当と作る、 なりたい姿と今やるべき一歩
dip_tech
PRO
0
150
行動するAIのためのオントロジー | DevRev — Encraft #26.pdf
dvrv_tknrszk
2
650
Execution in the Kingdom of Agents: Reflections on Abstraction and Complexity
bcantrill
0
590
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
330
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5k
Optimising Largest Contentful Paint
csswizardry
37
4k
Unsuck your backbone
ammeep
672
58k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
310
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Are puppies a ranking factor?
jonoalderson
2
4k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
290
Rails Girls Zürich Keynote
gr2m
96
14k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
3
4.3k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Transcript
0 竸プロに出てきそうなアルゴリズム part2 2022-09-02 第12回NearMe技術勉強会 Name / Nickname
1 目次 1. 全探索について 2. 再帰関数のメモ化 1
2 全探索について • for文を用いた全探索 • bit全探索 • 順列全探索 • 再帰関数を用いた全探索 など
2
3 再帰関数 例:フィボナッチ数列 ・F 0 = 0 ・F 1 = 1 ・F
N = F N-1 ー F N-2 def fibo(N): if N==0: return 0 elif N==1: return 1 else: return fibo(N-1) + fibo(N-2) 3
4 メモ化 計算量:O(2N)→O(N) 4 5 4 3 3 2 1 2
2 1 0 1 0 1 0 1
5 部分和問題 ・n個の正の整数 a[0],a[1],…,a[n−1]と正の整数Wが与えられる。これらの整数 から何個かの整数を選んで総和がAになるようにすることが可能か判定せよ。 例:a=[2,5,3,8,6,9], W=13 計算量がO(N*2N)からO(N*W)へ 5
6 参考文献 ・アルゴリズムとデータ構造 6
7 Thank you