-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathps3.java
More file actions
28 lines (22 loc) · 702 Bytes
/
ps3.java
File metadata and controls
28 lines (22 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.Map;
import java.util.TreeMap;
/**
* @author Nour Benmohamed
* problemset 3
* 5/3/2018
*
*/
public class ps3 {
/**
* @param args
*/
public static void main(String[] args) {
//protected Map<Character, Integer> characterFreq = new TreeMap<Character, Integer>();
// TODO Auto-generated method stub
String file= "test1";
compression test = new compression ("inputs/"+file+".txt","inputs/"+file+"_compressed.txt");
test.compress();
decompression test_out = new decompression (test.Letter.getCodeTree(), "inputs/"+file+"_compressed.txt", "inputs/"+file+"_decompressed.txt" );
test_out.decompress(test.Letter.getCodeTree());
}
}