Monday, February 28, 2011

http://en.wikipedia.org/wiki/Insertion_sort

HW Goal: eventually is a specific implementation of a Huffman encoding.

we got frequency array

#2.2 Priority Queue
push operation to put an element into the queue
pop operation to return the *smallest* element in the priority queue
internal representation, at this point, up to you. priority queue of ints

how to fill a byte array from a file
http://www.exampledepot.com/egs/java.io/file2bytearray.html

4 comments:

  1. wednesday night

    ReplyDelete
  2. Do you want us to implement it into the frequency array program, or use the QueueClass that we created in 1.4? I was just wondering because you use the term Queue..

    ReplyDelete
  3. separate from both of these. yes, it is a type of Queue, so it might be a good thing to implement the Queue interface when writing this new class.

    *eventually*, both the frequency array program and this PriorityQueue class will join together to form an interesting larger program.

    ReplyDelete