@@ -69,16 +69,6 @@ Compression ratio: 35.7% reduction
6969- Works best with files that have ** repetitive patterns**
7070- Typical use cases: Log files, structured data (JSON, XML), source code with repeated patterns
7171
72- ### Comparison
73-
74- | Feature | Huffman Coding | LZW |
75- | ---------| ---------------| -----|
76- | ** Method** | Frequency-based | Dictionary-based |
77- | ** Dictionary stored?** | Yes (frequency table) | No (built on-the-fly) |
78- | ** Best for** | Uneven character distribution | Repetitive patterns |
79- | ** Space overhead** | Medium (frequency table) | Low (no dictionary) |
80- | ** Example use case** | Text with skewed character frequency | Log files, structured data |
81-
8272## Installation
8373
8474### Prerequisites
@@ -93,12 +83,6 @@ On macOS:
9383brew install maven
9484```
9585
96- On Linux:
97- ``` bash
98- sudo apt-get install maven # For Debian/Ubuntu
99- sudo dnf install maven # For Fedora
100- ```
101-
10286Verify installation:
10387``` bash
10488mvn -version
@@ -110,7 +94,7 @@ mvn -version
11094### Directly Run the jar file
11195I have included the already build jar file. You can run it simply if you dont want to build
11296``` bash
113- java -jar FileCompression .jar
97+ java -jar file-compression-2.0-SNAPSHOT .jar
11498```
11599
116100
@@ -127,15 +111,7 @@ After building with Maven, you can run the JAR:
127111java -jar target/file-compression-2.0-SNAPSHOT-jar-with-dependencies.jar
128112```
129113
130- ![ Outlook] ( /git_resource/outlook.png?raw=true " File Compression GUI ")
131-
132- ## Zip a file
133- file>open>click zip>the zipped file will be created on the same folder
134-
135-
136- ## Unzip a file
137- file>open>click unzip>the unzipped file will be created on the same folder
138-
114+ ![ Outlook] ( /git_resource/readmeScreenshot.png?raw=true " File Compression GUI ")
139115
140116## Testing environment:
141117
0 commit comments