Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
oneonlee authored Sep 24, 2023
1 parent 64aef73 commit 434a947
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions 3. Algorithms/02. Sorting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@ $O(n^{2})$

- ์‚ฝ์ž…์ •๋ ฌ์€ ๋ฒ„๋ธ”์ •๋ ฌ ๋ณด๋‹ค๋Š” ํ•ญ์ƒ ์ตœ์†Œํ•œ ๋น ๋ฅด๊ฒŒ ์ˆ˜ํ–‰๋œ๋‹ค๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค.
- ์„ ํƒ์ •๋ ฌ์ด ๋ฒ„๋ธ”์ •๋ ฌ ๋ณด๋‹ค ๋น ๋ฅธ๊ฐ€?

- ์ผ๋ฐ˜์ ์œผ๋กœ๋Š” ์„ ํƒ์ •๋ ฌ ์•Œ๊ณ ๋ฆฌ์ฆ˜์ด ๋น ๋ฅด๋‹ค๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค.
- ๊ทธ๋Ÿฌ๋‚˜ ์ž…๋ ฅ์ด ์ด๋ฏธ ์ •๋ ฌ๋˜์–ด ์žˆ๋Š” ๊ฒฝ์šฐ, ์„ ํƒ์ •๋ ฌ์€ ์ง€์ •์ด ์ด๋ฃจ์–ด์ง€์ง€๋งŒ ๋ฒ„๋ธ”์ •๋ ฌ์€ ์ง€์ •์ด ์ด๋ฃจ์–ด์ง€์ง€ ์•Š์œผ๋ฏ€๋กœ ๋ฒ„๋ธ”์ •๋ ฌ์ด ๋น ๋ฅด๋‹ค.

- ์„ ํƒ์ •๋ ฌ ์•Œ๊ณ ๋ฆฌ์ฆ˜์ด ์‚ฝ์ž…์ •๋ ฌ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ณด๋‹ค ๋น ๋ฅธ๊ฐ€?
- $n$์˜ ํฌ๊ธฐ๊ฐ€ ํฌ๊ณ ,ํ‚ค์˜ ํฌ๊ธฐ๊ฐ€ ํฐ ์ž๋ฃŒ๊ตฌ์กฐ ์ผ ๋•Œ๋Š” ์ง€์ •ํ•˜๋Š” ์‹œ๊ฐ„์ด ๋งŽ์ด ๊ฑธ๋ฆฌ๋ฏ€๋กœ ์„ ํƒ์ •๋ ฌ ์•Œ๊ณ ๋ฆฌ์ฆ˜์ด ๋” ๋น ๋ฅด๋‹ค.

Expand Down Expand Up @@ -563,10 +561,8 @@ end RadixSort()
## Bitonic Sort

- Bubble Sort ๊ธฐ๋ฐ˜์˜ Parallel Sorting Algorithm์œผ๋กœ, Bi-tone ์ฆ‰, 2๊ฐœ์˜ ํ†ค์„ ์˜๋ฏธํ•œ๋‹ค.

- ์•„๋ž˜ ์‚ฌ์ง„์„ ๋ณด๋ฉด ๋ฐฉํ–ฅ์ด ์œ„ ์•„๋ž˜ 2๊ฐœ ์ฆ‰, ํ†ค์ด 2๊ฐœ์ด๋‹ค.
- ![](https://xilinx.github.io/Vitis_Libraries/database/2019.2/_images/bitonic_sort_architecture.png)

- [Sorting Network](https://en.wikipedia.org/wiki/Sorting_network)(์ •๋ ฌ๋ง)์„ ๋ฏธ๋ฆฌ ์ •์˜ํ•ด์•ผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

> In computer science, **comparator networks** are abstract devices built up of a fixed number of "wires", carrying values, and comparator modules that connect pairs of wires, swapping the values on the wires if they are not in a desired order. <br>Such networks are typically designed to perform sorting on fixed numbers of values, in which case they are called **sorting networks**.<br> <br>
Expand All @@ -579,10 +575,10 @@ end RadixSort()
<br>

- Analysis
- <img height="20" src="https://latex.codecogs.com/png.image?\dpi{1100}\bg{white}&space;O&space;(n\log^2&space;n)&space;" title="O (n\log^2 n) " /> comparators (๋น„๊ตํšŸ์ˆ˜)
- $O (n\log^2 n)$ comparators (๋น„๊ตํšŸ์ˆ˜)
- $O( \log ^{2} n)$ parallel time
- Space complexity
- <img height="20" src="https://latex.codecogs.com/png.image?\dpi{1100}\bg{white}&space;O&space;(n\log^2&space;n)&space;" title="O (n\log^2 n) " />
- $O (n\log^2 n)$

## Odd-even Sort

Expand All @@ -594,20 +590,15 @@ end RadixSort()
![](https://i.stack.imgur.com/LZJKu.jpg)

- The Odd-Even Transition Sorting Network for Keys

![](https://developer.nvidia.com/sites/all/modules/custom/gpugems/books/GPUGems2/elementLinks/46_sorting_01.jpg)

![](https://developer.download.nvidia.com/books/gpugems2/46_sorting_01.jpg)
- Analysis
- $O(n)$ parallel time

### Odd-even merge Sort

- The Odd-Even Merge Sorting Network for Keys

![](https://developer.nvidia.com/sites/all/modules/custom/gpugems/books/GPUGems2/elementLinks/46_sorting_02.jpg)

![](https://developer.download.nvidia.com/books/gpugems2/46_sorting_02.jpg)
- Analysis

- $O( \log ^{2} n)$ parallel time
- Worst-case performance - $O( \log ^{2} n)$ parallel time
- Best-case performance - $O( \log ^{2} n)$ parallel time
Expand Down

0 comments on commit 434a947

Please sign in to comment.