Click here to Skip to main content
15,918,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Huffman decoding from using two queues and cursors Pin
Albert Holguin3-May-11 17:03
professionalAlbert Holguin3-May-11 17:03 
GeneralRe: Huffman decoding from using two queues and cursors Pin
Francis Paran4-May-11 2:07
Francis Paran4-May-11 2:07 
AnswerRe: Huffman decoding from using two queues and cursors Pin
Stefan_Lang3-May-11 20:53
Stefan_Lang3-May-11 20:53 
GeneralRe: Huffman decoding from using two queues and cursors Pin
Francis Paran4-May-11 2:03
Francis Paran4-May-11 2:03 
GeneralRe: Huffman decoding from using two queues and cursors Pin
Stefan_Lang4-May-11 2:07
Stefan_Lang4-May-11 2:07 
GeneralRe: Huffman decoding from using two queues and cursors Pin
Francis Paran4-May-11 2:11
Francis Paran4-May-11 2:11 
GeneralRe: Huffman decoding from using two queues and cursors Pin
Stefan_Lang4-May-11 2:33
Stefan_Lang4-May-11 2:33 
GeneralRe: Huffman decoding from using two queues and cursors Pin
Francis Paran4-May-11 3:58
Francis Paran4-May-11 3:58 
Okay, that was a mistake on my part that I just found out yesterday. What I did was after finding a '1' in the file then output the character value of the left cursor of the node that curNode points at that point (assuming it has gone to many right cursors for every '0' found), and then let curNode point back at the ithNode which is just the front node of the queue. However, it was still 'e' that it prints out on the screen.

You are actually right at your point that 'e' will always come out, since 'e' is 01 at the encoding and that I always move one right cursor and a left cursor if it's '1' for all the characters in the file. Any ideas in how make this better?
GeneralRe: Huffman decoding from using two queues and cursors Pin
Stefan_Lang4-May-11 5:24
Stefan_Lang4-May-11 5:24 
GeneralRe: Huffman decoding from using two queues and cursors [modified] Pin
Francis Paran4-May-11 5:47
Francis Paran4-May-11 5:47 
AnswerRe: Huffman decoding from using two queues and cursors Pin
David Crow4-May-11 2:55
David Crow4-May-11 2:55 
GeneralRe: Huffman decoding from using two queues and cursors Pin
Francis Paran4-May-11 3:50
Francis Paran4-May-11 3:50 
QuestionRe: Huffman decoding from using two queues and cursors Pin
David Crow4-May-11 5:38
David Crow4-May-11 5:38 
AnswerRe: Huffman decoding from using two queues and cursors Pin
Francis Paran4-May-11 5:59
Francis Paran4-May-11 5:59 
GeneralRe: Huffman decoding from using two queues and cursors Pin
David Crow4-May-11 7:10
David Crow4-May-11 7:10 
GeneralRe: Huffman decoding from using two queues and cursors Pin
Francis Paran4-May-11 15:29
Francis Paran4-May-11 15:29 
QuestionProcessing CStringW one char at a time Pin
csrss2-May-11 23:10
csrss2-May-11 23:10 
AnswerRe: Processing CStringW one char at a time Pin
csrss2-May-11 23:23
csrss2-May-11 23:23 
GeneralRe: Processing CStringW one char at a time Pin
Niklas L3-May-11 1:08
Niklas L3-May-11 1:08 
Questioncopy text on clipboard Pin
john56322-May-11 23:05
john56322-May-11 23:05 
AnswerRe: copy text on clipboard Pin
_AnsHUMAN_ 3-May-11 0:00
_AnsHUMAN_ 3-May-11 0:00 
GeneralRe: copy text on clipboard Pin
David Crow3-May-11 3:00
David Crow3-May-11 3:00 
AnswerRe: copy text on clipboard Pin
Hamid_RT3-May-11 0:57
Hamid_RT3-May-11 0:57 
QuestionHow can I find style of CListCtrl ? Pin
_Flaviu2-May-11 22:03
_Flaviu2-May-11 22:03 
AnswerRe: How can I find style of CListCtrl ? Pin
«_Superman_»2-May-11 22:10
professional«_Superman_»2-May-11 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.