Skip to content
バブルソート

File:Bubblesort-edited-color.svg · Wikimedia Commons · See Wikimedia Commons

EntityQ60864· pop 56· linked from 88 articles

バブルソート

Sign in to save

Also known as sinking sort, bubblesort

ソートのアルゴリズムのひとつ

AI overview

Bubble sort is a straightforward method for arranging items in order by repeatedly comparing neighboring items and swapping them if they're in the wrong sequence. It's a useful algorithm for learning how sorting works, though faster methods exist for large collections of data.

AI-generated from the Wikipedia summary — may contain errors.

Article · 日本語

バブルソート(英: bubble sort)は、隣り合う要素の大小を比較しながら整列させるソートアルゴリズム。 アルゴリズムが単純で実装も容易である一方、最悪時間計算量は O(n2) と遅いため、一般にはマージソートやヒープソートなど、より最悪時間計算量の小さな(従って高速な)方法が利用される。 また、安定な内部ソートであり、並列計算との親和性が高いという利点もある。 基本交換法、隣接交換法あるいは単に交換法とも呼ばれる。「バブルソート」という呼称自体はケネス・アイバーソンの1962年の著書 “A Programming Language” に由来すると考えられる。

Abstract from DBpedia / Wikipedia · CC BY-SA

Gallery (3)