Two Sigma interview question

how to compress a prefix tree?

Interview Answers

Anonymous

27 Apr 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

25 Apr 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