Giter Site home page Giter Site logo

csq-autocomplete's Introduction

contributions welcome Version

To test with a bigger datset, I download the following:

You can choose wich dataset will be used (by default use the list of keywords that are provide in the doc).

To run the project execute the followings docker commands.

docker build -t csq-autocomplete .
docker run -it csq-autocomplete

Questions

What would you change if the list of keywords was much larger (300 Gb) ? Please explain and describe the concepts that would allow to handle this if you decide to use specific tools (frameworks, databases…)

If that is the case, using only an efficient search algorithm is not enough. To attack this problem we will need to partition the data in order to have smaller chunks of data to analyze. We could arrange in partitions of the three first letters of the words and sort the file in a distributed database (or filesystem). If three letters will still be lots of data, we could have more letters to the partitions. In anycase, we need to pre process the data and sort it in the most convenient way. Depending on the requirements we could use different tools. If response time will be on top, I will use some non-relational database like cassandra but if we need to analyze and keep the information for some batch processing I will use Spark with some distributed file system (s3, hadoop)

What would you change if the requirements were to match any portion of the keywords (for example, given the string “pro”, the program could suggest the keyword “re pro be”) ?

If the requirement changes to be in any part of the word, having the data in partition is not enough. We will need some pattern-indexing over the data to speed-up the process of searching and some auxiliary structure (like search trees) to find the words.

csq-autocomplete's People

Watchers

 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.