Giter VIP home page Giter VIP logo

dictionary's Introduction

Dictionary using C

Problem

A dictionary stores keywords & its meanings. Write a program for adding new keywords, deleting keywords, updating values of any entry. Provide facility to display whole data sorted in ascending/ Descending order. Also find how many maximum comparisons may require for finding any keyword. Use Hashing technique and find the complexity for finding a keyword.

Implement Dictionary ADT in two ways for the word-line concordance application.

  1. Using Binary Search Tree
  2. Using AVL Tree Also further compute the execution time (in seconds) taken by both dictionary ADT implementations and represent it graphically. Required Files: 1. The textual information to be examined is in the file: “data.txt” 2. The stop words are in the file “stop_words.txt”

[Hint:

  1. The word-concordance application code and each dictionary ADT should be developed and tested separately.
  2. A linked list implementation of the queue ADT can be useful to store the lines-of-occurrence for each word.
  3. use a regular expression to define a word can be studied at: https://docs.python.org/dev/howto/regex.html ]

The goal of this assignment is to process a textual, data file (data.txt) to generate a word concordance with line numbers for each main word. A dictionary ADT is perfect to store the word concordance with the word being the dictionary key and a list of its line numbers being the associated value with the key. Since the concordance should only keep track of the “main” words, there will actually be a second stop-words file (stop_words.txt). The stop-words file will contain a list of stop words (e.g., “a”, “the”, etc.) -- these words will not be included in the concordance even if they do appear in the data file. The output of the program should be a text file containing the concordance words printed out in alphabetical order along with their corresponding line numbers.

Solution

Implemented Dictionary ADT using Hashing, Binary Tree, AVL Tree for the above tasks.

How to run

Run make file

make

dictionary's People

Contributors

chaitanya-in 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.