끵뀐꿩긘의 여러가지

Graphic Sorting Algorithm (그래픽으로 구현한 정렬 알고리즘) -(2/2) 본문

JAVA/mini project

Graphic Sorting Algorithm (그래픽으로 구현한 정렬 알고리즘) -(2/2)

끵뀐꿩긘 2021. 5. 9. 17:21

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 실력의 부족함으로 인해 원하는 모양대로 그래픽을 구현할 수 없었던 것들이 많이 아쉬움에 남는다.

기획 단계에서 조금 더 생각하고 조금 더 자세히 기획하고 시작하는 게 중요해 보인다.

여러 정렬 알고리즘을 포스팅하면서 계속해서 코드를 예쁘게 개선해보겠다.

Comments