Skip to content

Commit 9154100

Browse files
authored
README-kor update 1
1 parent 80674d1 commit 9154100

1 file changed

Lines changed: 196 additions & 1 deletion

File tree

README-ko.md

Lines changed: 196 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,196 @@
1-
한글 리드미 만들기
1+
# 알고리즘 - 자바
2+
3+
## [개발브런치](https://github.com/TheAlgorithms/Java/tree/Development)는 기존 프로젝트를 Java 프로젝트 구조로 재개발하기 위해 작성되었다. 기여도를 위해 개발 지사로 전환할 수 있다. 자세한 내용은 이 문제를 참조하십시오. 컨트리뷰션을 위해 [개발브런치](https://github.com/TheAlgorithms/Java/tree/Development)로 전환할 수 있다. 자세한 내용은 [이 이슈](https://github.com/TheAlgorithms/Java/issues/474)를 참고하십시오.
4+
5+
### All algorithms implemented in Java (for education)
6+
7+
These are for demonstration purposes only. There are many implementations of sorts in the Java standard library that are much better for performance reasons.
8+
9+
## Sort Algorithms
10+
11+
12+
### Bubble
13+
![alt text][bubble-image]
14+
15+
From [Wikipedia][bubble-wiki]: Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted.
16+
17+
__Properties__
18+
* Worst case performance O(n^2)
19+
* Best case performance O(n)
20+
* Average case performance O(n^2)
21+
22+
###### View the algorithm in [action][bubble-toptal]
23+
24+
25+
26+
### Insertion
27+
![alt text][insertion-image]
28+
29+
From [Wikipedia][insertion-wiki]: Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time. It is much less efficient on large lists than more advanced algorithms such as quicksort, heapsort, or merge sort.
30+
In the figure, each bar represents an element of an array that needs to be sorted. What happens at the first intersection of the top most and second top most bars is to swap these elements, represented by bars, because the second element has a higher precedence than the first element does. By repeating this method, insertion sort completes sorting.
31+
32+
__Properties__
33+
* Worst case performance O(n^2)
34+
* Best case performance O(n)
35+
* Average case performance O(n^2)
36+
37+
###### View the algorithm in [action][insertion-toptal]
38+
39+
40+
### Merge
41+
![alt text][merge-image]
42+
43+
From [Wikipedia][merge-wiki]: In computer science, merge sort (also commonly spelt mergesort) is an efficient, general-purpose, comparison-based sorting algorithm. Most implementations produce a stable sort, which means that the implementation preserves the input order of equal elements in the sorted output. Mergesort is a divide and conquer algorithm that was invented by John von Neumann in 1945.
44+
45+
__Properties__
46+
* Worst case performance O(n log n) (typical)
47+
* Best case performance O(n log n)
48+
* Average case performance O(n log n)
49+
50+
51+
###### View the algorithm in [action][merge-toptal]
52+
53+
### Quick
54+
![alt text][quick-image]
55+
56+
From [Wikipedia][quick-wiki]: Quicksort (sometimes called partition-exchange sort) is an efficient sorting algorithm, serving as a systematic method for placing the elements of an array in order.
57+
58+
__Properties__
59+
* Worst case performance O(n^2)
60+
* Best case performance O(n log n) or O(n) with three-way partition
61+
* Average case performance O(n log n)
62+
63+
###### View the algorithm in [action][quick-toptal]
64+
65+
### Selection
66+
![alt text][selection-image]
67+
68+
From [Wikipedia][selection-wiki]: The algorithm divides the input list into two parts: the sublist of items already sorted, which is built up from left to right at the front (left) of the list, and the sublist of items remaining to be sorted that occupy the rest of the list. Initially, the sorted sublist is empty and the unsorted sublist is the entire input list. The algorithm proceeds by finding the smallest (or largest, depending on sorting order) element in the unsorted sublist, exchanging (swapping) it with the leftmost unsorted element (putting it in sorted order), and moving the sublist boundaries one element to the right.
69+
70+
__Properties__
71+
* Worst case performance O(n^2)
72+
* Best case performance O(n^2)
73+
* Average case performance O(n^2)
74+
75+
###### View the algorithm in [action][selection-toptal]
76+
77+
### Shell
78+
![alt text][shell-image]
79+
80+
From [Wikipedia][shell-wiki]: Shellsort is a generalization of insertion sort that allows the exchange of items that are far apart. The idea is to arrange the list of elements so that, starting anywhere, considering every nth element gives a sorted list. Such a list is said to be h-sorted. Equivalently, it can be thought of as h interleaved lists, each individually sorted.
81+
82+
__Properties__
83+
* Worst case performance O(nlog2 2n)
84+
* Best case performance O(n log n)
85+
* Average case performance depends on gap sequence
86+
87+
###### View the algorithm in [action][shell-toptal]
88+
89+
### Time-Compexity Graphs
90+
91+
Comparing the complexity of sorting algorithms (Bubble Sort, Insertion Sort, Selection Sort)
92+
93+
[Complexity Graphs](https://github.com/prateekiiest/Python/blob/master/sorts/sortinggraphs.png)
94+
95+
----------------------------------------------------------------------------------
96+
97+
## Search Algorithms
98+
99+
### Linear
100+
![alt text][linear-image]
101+
102+
From [Wikipedia][linear-wiki]: linear search or sequential search is a method for finding a target value within a list. It sequentially checks each element of the list for the target value until a match is found or until all the elements have been searched.
103+
The linear search runs in at the worst linear time and makes at most n comparisons, where n is the length of the list.
104+
105+
__Properties__
106+
* Worst case performance O(n)
107+
* Best case performance O(1)
108+
* Average case performance O(n)
109+
* Worst case space complexity O(1) iterative
110+
111+
### Binary
112+
![alt text][binary-image]
113+
114+
From [Wikipedia][binary-wiki]: Binary search, also known as half-interval search or logarithmic search, is a search algorithm that finds the position of a target value within a sorted array. It compares the target value to the middle element of the array; if they are unequal, the half in which the target cannot lie is eliminated and the search continues on the remaining half until it is successful.
115+
116+
__Properties__
117+
* Worst case performance O(log n)
118+
* Best case performance O(1)
119+
* Average case performance O(log n)
120+
* Worst case space complexity O(1)
121+
122+
From [Wikipedia][shell-wiki]: Shellsort is a generalization of insertion sort that allows the exchange of items that are far apart. The idea is to arrange the list of elements so that, starting anywhere, considering every nth element gives a sorted list. Such a list is said to be h-sorted. Equivalently, it can be thought of as h interleaved lists, each individually sorted.
123+
124+
__Properties__
125+
* Worst case performance O(nlog2 2n)
126+
* Best case performance O(n log n)
127+
* Average case performance depends on gap sequence
128+
129+
###### View the algorithm in [action][shell-toptal]
130+
131+
[bubble-toptal]: https://www.toptal.com/developers/sorting-algorithms/bubble-sort
132+
[bubble-wiki]: https://en.wikipedia.org/wiki/Bubble_sort
133+
[bubble-image]: https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/Bubblesort-edited-color.svg/220px-Bubblesort-edited-color.svg.png "Bubble Sort"
134+
135+
[insertion-toptal]: https://www.toptal.com/developers/sorting-algorithms/insertion-sort
136+
[insertion-wiki]: https://en.wikipedia.org/wiki/Insertion_sort
137+
[insertion-image]: https://upload.wikimedia.org/wikipedia/commons/7/7e/Insertionsort-edited.png "Insertion Sort"
138+
139+
[quick-toptal]: https://www.toptal.com/developers/sorting-algorithms/quick-sort
140+
[quick-wiki]: https://en.wikipedia.org/wiki/Quicksort
141+
[quick-image]: https://upload.wikimedia.org/wikipedia/commons/6/6a/Sorting_quicksort_anim.gif "Quick Sort"
142+
143+
[merge-toptal]: https://www.toptal.com/developers/sorting-algorithms/merge-sort
144+
[merge-wiki]: https://en.wikipedia.org/wiki/Merge_sort
145+
[merge-image]: https://upload.wikimedia.org/wikipedia/commons/c/cc/Merge-sort-example-300px.gif "Merge Sort"
146+
147+
[selection-toptal]: https://www.toptal.com/developers/sorting-algorithms/selection-sort
148+
[selection-wiki]: https://en.wikipedia.org/wiki/Selection_sort
149+
[selection-image]: https://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Selection_sort_animation.gif/250px-Selection_sort_animation.gif "Selection Sort Sort"
150+
151+
[shell-toptal]: https://www.toptal.com/developers/sorting-algorithms/shell-sort
152+
[shell-wiki]: https://en.wikipedia.org/wiki/Shellsort
153+
[shell-image]: https://upload.wikimedia.org/wikipedia/commons/d/d8/Sorting_shellsort_anim.gif "Shell Sort"
154+
155+
[linear-wiki]: https://en.wikipedia.org/wiki/Linear_search
156+
[linear-image]: http://www.tutorialspoint.com/data_structures_algorithms/images/linear_search.gif
157+
158+
[binary-wiki]: https://en.wikipedia.org/wiki/Binary_search_algorithm
159+
[binary-image]: https://upload.wikimedia.org/wikipedia/commons/f/f7/Binary_search_into_array.png
160+
161+
162+
--------------------------------------------------------------------
163+
## Links to the rest of the algorithms
164+
165+
Conversions | Dynamic Programming |Ciphers|Miscellaneous|
166+
----------- |----------------------------------------------------------------|-------|-------------|
167+
[Any Base to Any Base](Conversions/AnyBaseToAnyBase.java)| [Coin Change](Dynamic%20Programming/CoinChange.java)|[Caesar](ciphers/Caesar.java)|[Heap Sort](misc/heap_sort.java)|
168+
[Any Base to Decimal](Conversions/AnyBaseToDecimal.java)|[Egg Dropping](Dynamic%20Programming/EggDropping.java)|[Columnar Transposition Cipher](ciphers/ColumnarTranspositionCipher.java)|[Palindromic Prime Checker](misc/PalindromicPrime.java)|
169+
[Binary to Decimal](Conversions/BinaryToDecimal.java)|[Fibonacci](Dynamic%20Programming/Fibonacci.java)|[RSA](ciphers/RSA.java)|More soon...|
170+
[Binary to HexaDecimal](Conversions/BinaryToHexadecimal.java)|[Kadane Algorithm](Dynamic%20Programming/KadaneAlgorithm.java)|more coming soon...|
171+
[Binary to Octal](Conversions/BinaryToOctal.java)|[Knapsack](Dynamic%20Programming/Knapsack.java)|
172+
[Decimal To Any Base](Conversions/DecimalToAnyBase.java)|[Longest Common Subsequence](Dynamic%20Programming/LongestCommonSubsequence.java)|
173+
[Decimal To Binary](Conversions/DecimalToBinary.java)|[Longest Increasing Subsequence](Dynamic%20Programming/LongestIncreasingSubsequence.java)|
174+
[Decimal To Hexadecimal](Conversions/DecimalToHexaDecimal.java)|[Rod Cutting](Dynamic%20Programming/RodCutting.java)|
175+
and much more...| and more...|
176+
177+
### Data Structures
178+
Graphs|Heaps|Lists|Queues|
179+
------|-----|-----|------|
180+
[BFS](DataStructures/Graphs/BFS.java)|[Empty Heap Exception](DataStructures/Heaps/EmptyHeapException.java)|[Circle Linked List](DataStructures/Lists/CircleLinkedList.java)|[Generic Array List Queue](DataStructures/Queues/GenericArrayListQueue.java)|
181+
[DFS](DataStructures/Graphs/DFS.java)|[Heap](DataStructures/Heaps/Heap.java)|[Doubly Linked List](DataStructures/Lists/DoublyLinkedList.java)|[Queues](DataStructures/Queues/Queues.java)|
182+
[Graphs](DataStructures/Graphs/Graphs.java)|[Heap Element](DataStructures/Heaps/HeapElement.java)|[Singly Linked List](DataStructures/Lists/SinglyLinkedList.java)|
183+
[Kruskals Algorithm](DataStructures/Graphs/KruskalsAlgorithm.java)|[Max Heap](Data%Structures/Heaps/MaxHeap.java)|
184+
[Matrix Graphs](DataStructures/Graphs/MatrixGraphs.java)|[Min Heap](DataStructures/Heaps/MinHeap.java)|
185+
[PrimMST](DataStructures/Graphs/PrimMST.java)|
186+
187+
Stacks|Trees|
188+
------|-----|
189+
[Node Stack](DataStructures/Stacks/NodeStack.java)|[AVL Tree](DataStructures/Trees/AVLTree.java)|
190+
[Stack of Linked List](DataStructures/Stacks/StackOfLinkedList.java)|[Binary Tree](DataStructures/Trees/BinaryTree.java)|
191+
[Stacks](DataStructures/Stacks/Stacks.java)|And much more...|
192+
193+
* [Bags](DataStructures/Bags/Bag.java)
194+
* [Buffer](DataStructures/Buffers/CircularBuffer.java)
195+
* [HashMap](DataStructures/HashMap/HashMap.java)
196+
* [Matrix](DataStructures/Matrix/Matrix.java)

0 commit comments

Comments
 (0)