일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 소수
- 웹프로그래밍
- BJ
- programmers
- 프로그래머스
- 웹서버
- dbms
- 정렬
- 해시
- Kruskal's Algorithm
- 벡엔드
- 부스트코스
- 백준
- greedy
- mysql
- 다이나믹 프로그래밍
- 정렬 알고리즘
- mst
- DP
- Prim's Algorithm
- 프림 알고리즘
- request
- 브라우저
- 그리디
- jsp
- 순열 알고리즘
- SERVLET
- 네이버 부스트캠프 ai tech
- 웹 프로그래밍
- 크루스칼 알고리즘
- Today
- Total
끵뀐꿩긘의 여러가지
Graphic Sorting Algorithm (그래픽으로 구현한 정렬 알고리즘) -(2/2) 본문
21/05/08일에 구현하기 시작해서 21/05/09일에 구현 마무리
github 링크:
github.com/jerry-ryu/java_problemsolving_algorithm/tree/main/miniproject/Graphic_sorting_project
jerry-ryu/java_problemsolving_algorithm
solving problems and learning algorithm using java - jerry-ryu/java_problemsolving_algorithm
github.com
동작 영상:
ReadMe.txt
<Java Graphic sorting>
Java Graphic sorting program using java swing, awt and sorting algorithms.
100% complete
-implement GUI Window and environmental preference(05/08)
-implement Random function to initialize numbers(05/08)
-implement Bubble sort function to sort numbers(05/08)
-implement Selection sort, Insertion sort, Merge sort, Quick sort , heap sort function to sort numbers(05/09)
-implement swap function to guarantee reusability and measure constant time.
-implement time counter and swap counter and sorting algorithm description
Shortcommings:
1. Lack of code reusability
2. Overuse of global variables
3. Inconsistent swap, time counter
느낀점:
코드에 주석을 달지 않고 계획하지 않은 채로 손 가는 대로 코드를 짜서 스스로만 알수 있는 코드가 되어버린 것,
코드에서 중복되는 부분이 많아 충분히 메서드를 사용하여 코드를 재사용할 수 있었음에도 불구하고(swap 메서드) 그렇게 하지 않은 것,
swing과 awt 실력의 부족함으로 인해 원하는 모양대로 그래픽을 구현할 수 없었던 것들이 많이 아쉬움에 남는다.
기획 단계에서 조금 더 생각하고 조금 더 자세히 기획하고 시작하는 게 중요해 보인다.
여러 정렬 알고리즘을 포스팅하면서 계속해서 코드를 예쁘게 개선해보겠다.
'JAVA > mini project' 카테고리의 다른 글
Graphic Sorting Algorithm (그래픽으로 구현한 정렬 알고리즘) -(1/2) (0) | 2021.05.08 |
---|