Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef50238

Browse files
Add pt-BR translation to sorting/selection-sort (trekhleb#665)
1 parent61f2d19 commitef50238

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

‎src/algorithms/sorting/selection-sort/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#Selection Sort
22

3+
_Read this in other languages:_
4+
[Português brasileiro](README.pt-BR.md).
5+
36
Selection sort is a sorting algorithm, specifically an
47
in-place comparison sort. It has O(n2) time complexity,
58
making it inefficient on large lists, and generally
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#Selection Sort
2+
3+
_Leia isso em outras línguas:_
4+
[english](README.md).
5+
6+
Selection Sort é um algoritmo de ordenação, mais especificamente um algoritmo de ordenação por comparação in-place (requer uma quantidade constante de espaço de memória adicional). Tem complexidade O(n²), tornando-o ineficiente em listas grandes e, geralmente, tem desempenho inferior ao similar Insertion Sort. O Selection Sort é conhecido por sua simplicidade e tem vantagens de desempenho sobre algoritmos mais complexos em certas situações, particularmente quando a memória auxiliar é limitada.
7+
8+
![Visualização do algoritmo](https://upload.wikimedia.org/wikipedia/commons/b/b0/Selection_sort_animation.gif)
9+
10+
![Visualização do algoritmo](https://upload.wikimedia.org/wikipedia/commons/9/94/Selection-Sort-Animation.gif)
11+
12+
##Complexidade
13+
14+
| Nome| Melhor| Médio| Pior| Memória| Estável| Comentários|
15+
| ---------------------| :-------------:| :-----------------:| :-----------------:| :-------:| :-------:| :----------:|
16+
|**Selection sort**| n<sup>2</sup>| n<sup>2</sup>| n<sup>2</sup>| 1| Não||
17+
18+
##Referências
19+
20+
[Wikipedia](https://en.wikipedia.org/wiki/Selection_sort)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp