← All slides

Algorithms for Beginners — Slides

20 lessons, 458 slides. Each lesson's text and code as one deck (the slides are in Japanese).

Version 1 (made 2026-11-06)

Payment is handled on Stripe's page. After buying, you can download from this page at any time.

Please log in to use a coupon code. You can also enter a promotion code on the payment page (Stripe).

Samples

Sample slide 1 Sample slide 2 Sample slide 3

What's included

  • slides.pdf — One slide per page. For checking or printing
  • png/ — 1920×1080 images, ready to drop into a video editor
  • index.html — Open in a browser to present. Press P for the presenter view (notes, next slide, elapsed time)

Each lesson has its own folder. The lesson text is kept as is, so what to say appears in the presenter notes.

How you may use them

  • Your own study
  • Classes, lectures and study groups you teach yourself
  • In-house training at your own company or organization
  • On screen in videos you record yourself for those classes or trainings
  • Editing the wording or reordering slides for those uses
  • Handing out the slide files themselves (PDF, PNG, HTML) to learners or anyone else
  • Selling the slides, or edited versions of them, or including them in paid materials
  • Posting them anywhere public (websites, social media, public videos on video sites, etc.)
  • Removing the 4peiron.dev credit and presenting them as your own work

4peiron.dev keeps the copyright. What you buy is the right to use the slides as described above. The same terms are in README.txt inside the ZIP.

Contents

1

アルゴリズムと計算量(O記法の読み方)

22 slides

2

計算量を実測する(perf_counter と中央値)

24 slides

3

配列とリスト(pop() と pop(0) で595倍)

21 slides

4

線形探索(「何回探すか」で選ぶ)

20 slides

5

二分探索(3つの失敗を実際に動かす)

29 slides

6

ソート①:バブル・選択・挿入

27 slides

7

ソート②:マージソートと分割統治

19 slides

8

ソート③:クイックソートと最悪ケース

18 slides

9

組み込みソートと key(Timsortは42倍)

21 slides

10

スタックとキュー(1行でBFSがDFSになる)

19 slides

11

連結リスト(配列とは正反対の性質)

22 slides

12

ハッシュテーブル(in を set に変えて1,000倍)

29 slides

13

木と二分探索木(入れる順番で形が変わる)

25 slides

14

ヒープと優先度付きキュー(上位10件を21倍速く)

21 slides

15

グラフと幅優先探索(BFSとダイクストラ)

22 slides

16

深さ優先探索と再帰(深さ1000で止まる)

21 slides

17

動的計画法(1行足すだけで4万倍)

26 slides

18

貪欲法(その場の最善が、全体の最善とは限らない)

20 slides

19

文字列アルゴリズム(2つのポインタと動く窓)

20 slides

20

総まとめ:制約を見て、素朴に解いて、測って、直す

32 slides

The lesson text is on the course page. Slides are sold separately from the membership; members also need to buy them. Refunds follow the Terms of Service.