GithubHelp home page GithubHelp logo

datastructure_team10's Introduction

DataStructure_Team10

Presentation Slides: https://www.canva.com/design/DAFU1_E73BU/MJ-yX7awmpWVvnYS5pPeKQ/view?utm_content=DAFU1_E73BU&utm_campaign=designshare&utm_medium=link&utm_source=viewer

Demo Video: https://drive.google.com/drive/folders/1UDL15Iw0EItJe62iR7Oeu_1-OkCYleUk?usp=sharing

App(因檔案太大),請由此下載 App程式碼:https://drive.google.com/file/d/1FBI7snaNGGzOWz_fjYCykEhlOjnznVxd/view?usp=sharing Apk檔案:https://github.com/RexRed6802/RamenSearcher/releases/download/1.0.0/app-debug.apk

以下內容皆節錄自上述連結

introduction - Motivation:

a. Topic: The Best Search Engine for RAMEN Lovers
b. Motivation: Recently, collecting different kinds of Ramen has become a trend in Taiwan. Those comments left on social media let more and more “novices” get to know this culture. However, we think some information is not accurate at all. Therefore, we wants to make a search engine for those RAMEN mania to get the rapidly and accurately RAMEN restaurants with high quality.

Searching Methodology

a. Keywords:

KEYWORD | WEIGHT
拉麵 | 500
豚骨 | 300
叉燒 | 300
雞白湯 | 200
醬油 | 200
台北 | 200
排隊 | 50
好吃 | 30
湯底 | 30
激辛 | 30
日本 | 30
日式 | 30
美食 | 30
湯 | 5
麵 | 5

b. Compulsory keyword:
When user search, and in googleQuery class , we will mandatorily and automatically add keyword like “拉麵” and “台北” to make the result more accurately.

c. The websites can be ranked:
i. https://ramenroamer.com/
ii. https://www.ramenexplorer.com/
iii. https://trade.1111.com.tw/web/%E6%8B%89%E9%BA%B5/
...etc

d. Formula:
Score = count x weight

3. System Search Process and Design:

a. We start with the main function in the main class. First of all, we call the searchGoogle function with the keys provided by users. The searchGoogle will query Google and return a HashMap including url and website title.

b. Second of all, we call the buildTree function to build the tree, setting every url in HashMap as the tree root and store each root in our resultList to make sorting them more convenient soon. For each root node, we set its score by calling each root's node's page’s setScore function. Then we jump into the second loop to get those urls contained in every page and set their score as we did to the root node. In turn, finishing building trees.

c. By the way, when we call setScore function in every webpages, we will create a wordCounter object to count its score. Then we call setPostOrderScore for every root.

d. When finishing creating every tree in resultList. we can use the selectionSort function to sort them.
e. Publish our result to front-end (user)
f. Unified Modeling Language(UML)
alt text

This is a project for Data Structure course.

[2022.12.16]

  1. finish finding relative words
  2. finish front-end design
  3. The project is done.... maybe

[2022.11.29]

  1. front-end design is start image

[2022.11.26]

  1. Implement multithreading in our project and indeed speed up the crawling time.(just 10 seconds to build and search 40 web trees)

[2022.11.20]

  1. solve some of bugs like url not found or crawl the websites that with no content
  2. concise the code
  3. change our topic to ramen

[2022.10.22]

  1. finish basic searching enginee but still need to optimize and beautify image

datastructure_team10's People

Stargazers

 avatar

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.