JP's Blog

  • GitHub * Flickr * Resume
  • Reviews
  • Programming
  • Photography
  • Maker
  • Writing
  • Research
  • RSS

Dictionary tries in Racket

2012-10-11
  • Languages
    • Racket
    • Scheme
  • Topics
    • Data Structures
    • Word Games
  • programming
    • Prev Next
  • All Posts
    • Prev Next

For the next few posts, we’re going to need a way to represent a dictionary. You could go with just a flat list containing all of the words in the dictionary, but the runtime doesn’t seem optimal. Instead, we want a data structure that lets you easily get all possible words that start with a given prefix. We want a trie.

. Source: dictionary source code

  • All posts: By Date
  • All posts: By Tag
  • RSS: All
  • RSS: programming

All posts unless otherwise mentioned are licensed under Creative Commons License

Any source code unless otherwise mentioned is licensed under the 3 clause BSD license