Showing posts with label cs211. Show all posts
Showing posts with label cs211. Show all posts

Monday, February 19, 2007

cs211 Assignment Part2

LZW Compression completed!!!!!

if (compDict.size() == Math.pow(2, myOBStream.getCodeLength())) {
myOBStream.incrementCodeLength();
myOBStream.writeCode(IncresedCode);
}

if (compDict.size() == Math.pow(2, myOBStream.getCodeLength())) {
myOBStream.writeCode(IncresedCode);
myOBStream.incrementCodeLength();
}


위의 소스를 아래로 바꾸어 주었다.
압축을 거의 완성했다 싶은 순간부터 마지막 5 bytes 맞춰주느라 3~5시간 정도 헤맨것 갔다.
순서... 완전 중요!!!

(오후 5: 40 압축 프로그램 마지막으로 다듬었다. e.g. 원본 파일 이름에 압축확장자 붙이기, Javadoc 만들기.)

이제 Decompression~ go, go!!!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
저녁에 자고 일어나서
Compression and Decompression 완벽 구현~~!!!
.dat .txt .jpg .bmp 파일 테스트 완료

이제 Application UI 손 보면 되겠다~* ^~^*

음.. 자고 일어나서 내일 PC실 가서 민하 도와줘야지~~

오전 4:18

Sunday, February 18, 2007

요즘 프로그래밍에 불을 붙이는 두 가지~

CPSC211 Term Project 06W2

Objectives:

  • to write a program in Java that performs file compression and decompression using the LZW compression algorithm
  • to apply good object oriented software development techniques to produce a program of intermediate complexity
  • to investigate the efficiency of different implementations
  • to design and implement a graphical user interface to facilitate use of the application

http://www.ugrad.cs.ubc.ca/~cs211/

---------------------------------------------------------------------------------






My Points Total
15
My Ranking 97

CS211 공부 좀 해야지.. 숙제도 이렇게 버벅대면서 이매진컵 가능성이 있겠냐 싶기도 하지만
솔직한 이야기로 내가 투자한 시간이 적다는 건 인정해야 해.
learning curve를 생각해 보자면 개인마다 기울기는 다르겠지만, 투자한 시간이 많을 수록 많이 배울 수 있다고..

음,,, upcoming robotics HW#3, OB Mid., IB Mid., and CS211 Mid.