
Document
... Using the union-by-rank heuristic and path compression, show the result from the following series of equivalences on a set of objects indexed by the values 1 through 16, assuming initially that each element in the set is in an equivalence class containing it alone. When the ranks of the two trees ar ...
... Using the union-by-rank heuristic and path compression, show the result from the following series of equivalences on a set of objects indexed by the values 1 through 16, assuming initially that each element in the set is in an equivalence class containing it alone. When the ranks of the two trees ar ...
Final Solutions
... (c) W (at most one trie node for each bit in the input). Alternate solution 1: use a TST instead of a binary trie. Since the radix size is 2, the running time will still be linear: you at most double the length of a search path for a codeword. Alternate solution 2: sort all of the codewords (MSD rad ...
... (c) W (at most one trie node for each bit in the input). Alternate solution 1: use a TST instead of a binary trie. Since the radix size is 2, the running time will still be linear: you at most double the length of a search path for a codeword. Alternate solution 2: sort all of the codewords (MSD rad ...
Document
... Using the union-by-rank heuristic and path compression, show the result from the following series of equivalences on a set of objects indexed by the values 1 through 16, assuming initially that each element in the set is in an equivalence class containing it alone. When the ranks of the two trees ar ...
... Using the union-by-rank heuristic and path compression, show the result from the following series of equivalences on a set of objects indexed by the values 1 through 16, assuming initially that each element in the set is in an equivalence class containing it alone. When the ranks of the two trees ar ...