Skip to main content
Filter by
Sorted by
Tagged with
Tooling
0 votes
1 replies
36 views

I have been following the inner working of Deflate compression and i have came across a junction in which i need to understand how efficient are compressor's choices with this lossless compression ...
actgroup inc's user avatar
2 votes
1 answer
75 views

Assuming we have 2 files: FILE 1 Uncompressed size: 793765 bytes Compressed size: 604911 bytes Data type: 99% Base64 Compression method : deflate dynamic FILE 2 Uncompressed size: 793765 ...
actgroup inc's user avatar
1 vote
2 answers
98 views

I am running into a very interesting dilemma while learning Huffman compression. I am currently studying in a course that uses zyBooks and the examples are absolutely terrible in my opinion. In 2 ...
TAW_WarDriver's user avatar
0 votes
1 answer
111 views

What features in a data set would lead to Huffman coding outperforming Deflate compression? I am looking at lossless data compression for numerical raster data sets such as terrestrial elevation data. ...
Gary Lucas's user avatar
1 vote
1 answer
45 views

So I am making a data compression tool using Huffman Encoding and decoding, I am at the stage where I have built the Huffman Tree and it is a success but I am feeding that tree in a GenerateCodes ...
Gaurav Tak's user avatar
-1 votes
1 answer
117 views

I have this question: Consider a DMS with seven possible symbols Xi, i = 1, 2, ... , 7 and the corresponding probabilities p1 = 0.37, p2 = 0.33, p3 = 0.16, p4 = 0.07, p5 = 0.04, p6 = 0.02, and p7 = 0....
Blahblah's user avatar
2 votes
2 answers
182 views

I have written this function. It does some magic with the file that I input (the one to compress) - a .txt (text) file, however the output (compressed) file is larger than the original one. For ...
Евгений Кондратьев's user avatar
0 votes
1 answer
124 views

I am trying to implement Huffman encoding to compress files (for learning purpouses). I can generate Huffman codes for a given message and use that to build a binary string containing the compressed ...
Doruk's user avatar
  • 233
0 votes
1 answer
77 views

I have a relatively long list of low bit integers by size 16*10^6. The sparsity level of this list is about 40%, so applying any sparse matrix does not work. The first step I tried Run-length encoding,...
daLime's user avatar
  • 47
1 vote
0 answers
109 views

Edit: My bench marking code was wrong (SIZE / BUFSIZ in fwrite() should only be BUFSIZ), so everything is cleared up: in my case buffered fwrite() is giving better performance. I try to speed optimize ...
TheGlibber's user avatar
0 votes
1 answer
85 views

(I asked multiple questions to the implementation of the huffman code here, if I ask too many questions please tell me and I'll stop. Any tips on how to learn to find those mistakes myself are ...
TheGlibber's user avatar
0 votes
2 answers
137 views

I have to write individual Bits to a file (for huffman code). To do so I send bits to a function which buffers them until a byte is filled and then returns the byte. I can´t figure out why it doesn't ...
TheGlibber's user avatar
0 votes
0 answers
12 views

code: typedef struct { int weight; char c; int parent, lchild, rchild; } Node, *HTree; void findmin(HTree ht, int len, int *p1, int *p2) void CreateHTree(HTree ht, int n) void print(...
Sparashy's user avatar
0 votes
0 answers
112 views

I have the below code and i get this error: File "C:\Users\omar\AppData\Local\Programs\Python\Python312\Lib\site-packages\jpeglib\functional.py", line 71, in read_dct return DCTJPEG( ^^^^^^^...
arshub's user avatar
  • 1
0 votes
1 answer
156 views

I'm trying to build a JPEG decoder, and I'm testing it on a greyscale image to keep things simple: https://commons.wikimedia.org/wiki/File:Grayscale_%28182824419%29.jpeg The code works OK, but the ...
William Gibbons's user avatar
1 vote
1 answer
117 views

My problem is similar to the one solved HERE, with few differences. So the a Deflated block with dynamic Huffman codes is structured like this: |Block Header|compressed block|end of block| Then Block ...
terry franklin's user avatar
1 vote
2 answers
142 views

I am creating a file compression and decompression, and I don't know how to handle the remaining bits when I decompressed. For example, I have 63 bits.length() and since byte = 8 bits, bits.length() % ...
Pewpew's user avatar
  • 11
0 votes
1 answer
39 views

I'm trying to create a height-limited Huffman Tree. One algorithm proposed for this is the BRCI Algorithm, which promises a comparatively fast and simple to implement solution. This means that the ...
twynb's user avatar
  • 41
1 vote
1 answer
261 views

I'm working on a project to compress/decompress a text file with the Huffman algorithm. I've successfully managed to compress a given text file into binary -- I've checked with the Visual Studio Hex ...
M K's user avatar
  • 17
0 votes
1 answer
3k views

i am trying to implement a JPEG decoder. i was following JPEG standard T.81. i understand how the JPEG file is structured, different marker, etc. the type of images i am dealing with is lossless, ...
Sarath S's user avatar
-1 votes
1 answer
29 views

I'm reserching about a method to decreses the time and space complexity of the process before huffman encoding where the computer have to give the frequency of each character to the code.I wanted to ...
DEVANSH MATHA's user avatar
-1 votes
1 answer
560 views

I used this code HuffmanCodeto compress this text ...
lena's user avatar
  • 727
0 votes
3 answers
175 views

In Huffman coding we perform a series of iterations in which each time we remove from a priority queue the two minimum elements and add to it an element corresponding to the sum of the two elements ...
spinos's user avatar
  • 31
1 vote
0 answers
82 views

I am writing a program that converts PNG image into the text by using Huffman code(It's like a compressed file) and after decompressed this file by using a CodeDictionary and as result I should get ...
Alex's user avatar
  • 11
0 votes
1 answer
27 views

letter frequency a 5 b 6 c 5 d 6 e 11 f 13 g 23 h 25 i 26 j 46 Here is what I get, correct me if I'm wrong: a and c both 5, to get node 10, b and d both 6 to get 12, combine to get 22, e and f on ...
Cyrus Ghiai's user avatar

1
2 3 4 5
22