Giter Club home page Giter Club logo

search-engine-automatic-association's Introduction

JSP-AJAX-Trie-实现搜索引擎自动联想

B站视频讲解:av69290072

在线预览地址:http://trie.wmathor.com/AJAX

效果图

使用说明

  1. 数据库MySql,数据库文件在目录AJAX下
  2. 首先把WebRoot/WEB-INF/lib底下的7个jar包添加到项目中
  3. 访问路径时首先访问localhost:8080/AJAX,因为需要初始化Trie,将数据库内的所有数据生成Trie树。Trie树构造完成会自动跳转到localhost:8080/search.jsp

效率对比

使用数据库模糊查询,和使用Trie树直接获取,两种方式获取的都是同样的内容,执行1000次的时间如下

查询方式 运行时间
Trie 6ms
数据库模糊查询 3951ms

2019/6/14更新

  1. 更新UI
  2. 点击下拉框中的某个信息,自动填充到输入框

search-engine-automatic-association's People

Contributors

wmathor avatar

Stargazers

whitewatercn avatar

Watchers

James Cloos avatar

Forkers

whitewatercn

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.