Giter VIP home page Giter VIP logo

ads-tries's Introduction

T9 Dictionary

Use

Install

$ git clone <repo> && cd <repo>
$ npm install

Run

This week has a nifty visualization! If you run the server locally you can see:

  1. A T9 keyboard backed by your trie
  2. A performance profiler, comparing different implementations of the prefix dictionary interface

To run the server, type

$ npm start

This should open the browser automatically, if not navigate to localhost:9000

Test

$ npm test

Runs jest in watch mode

Assignment

Core

Implement the Trie class to pass the tests

Play with your trie implementation using the visualization. Does it behave the way you expected?

Optional

  1. Implement a compressed radix tree, as in the discussion questions or this article
    • Add it to the data structure list so that the tests run against it and it appears in the performance profiler
    • How does performance compare to the uncompressed trie? To the word list?
  2. Currently, lookupPrefix returns an array. Modify it to return a generator function instead.

Reference

ads-tries's People

Contributors

kguadron avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.