0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

オーダ記法

Posted at

オーダ記法とは、アルゴリズムの計算量(実行時間)。

各アルゴリズムのオーダ

以下アルゴリズムのオーダを紹介する

探索アルゴリズムのオーダ

線形探索法 O(n)

2分探索法  O(log2n)

ハッシュ法 O(1)

整列アルゴリズムのオーダ

基本交換法(バブルソート) O(n^2)

基本選択法(選択ソート) O(n^2)

基本挿入法(挿入ソート) O(n^2)

シェルソート O(n^1.2)

クイックソート O(nlog2n)

ヒープソート O(nlog2n)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?