Two Sigma Interview Question

how to compress a prefix tree?

Interview Answers

Anonymous

Apr 27, 2012

The above PDF link should be for researchers. It is a bit overwhelming for most software developers. I guess the interviewer wants you to discuss something like "directed acyclic word graph" or DAWG. Simply put, DAWG not only uses prefixes like trie, but also uses suffix to compress data. Here is wikipedia link: http://en.wikipedia.org/wiki/Directed_acyclic_word_graph

5

Anonymous

Apr 25, 2012

Not sure what this is looking for without some background. Check out this link though, it should lead you down the correct path: http://crpit.com/confpapers/CRPITV17Sucahyo.pdf