GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - JulieLiu99/Dictionary

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
Dictionary141words.txt
Dictionary141words.txt
 
 
Dictionary2265words.txt
Dictionary2265words.txt
 
 
Dictionary283words.txt
Dictionary283words.txt
 
 
Dictionary466544words.txt
Dictionary466544words.txt
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
README.pdf
README.pdf
 
 
myspeller.cpp
myspeller.cpp
 
 
search.cpp
search.cpp
 
 
search.h
search.h
 
 

Repository files navigation

Data-Structure-Project-1

This is a speller application termed myspeller, that can help a user lookup English words in a provided dictionary. This program is created using the elementary data structures (mostly arrays) and the Linux/FreeBSD C++ environment. Once the program starts, it presents the user with a prompt. Every time, the user types in a query, the application generates and prints out the result(s) and finally, it gives the prompt again to indicate that it expects the next query. The program terminates once the user types at the prompt exit.

Prerequisites

All the files including Makefile, myspeller.cpp, search.cpp, search.h, and dictionary files should be in the same directory Sorted words in dictionary files, each word per line.

Getting Started

This instruction will get you a copy of the project up and running on your local machine for development and testing purposes. ./myspeller -d dictionaryfilename -l numberOfWordsSearch The following is an example of running the program via command line.

./myspeller -d Dictionary141words.txt -l 2 //user input
filename = Dictionary141words.txt
WordCount = 2
Dictionary size is 141
Which word are you looking for? Type 'exit' to stop : 
college //user input
word found
7 word comparisons carried out
Which word are you looking for? Type 'exit' to stop : 
co* //user input
word found
10 word comparisons carried out
college
company
Which word are you looking for? Type 'exit' to stop : 
col?ege
college
word found
8 word comparisons carried out
Which word are you looking for? Type 'exit' to stop : 
exit  //user input

Algorithmic Analysis

In the Main.() function, reading from the dictionary file and storing the data into an array has O(n) running time. In the Seaching class, binary search has O(n logn) running time. binaryWordStarSearch and binaryWordQSearch functions have additional search of linear complexity on part of the dictionary array, which does not affect the overall complexity.

Authors

  • Julie Liu
  • Romeno Wenogk Fernando

Acknowledgments

  • The project is finished under the guidance of Professor Stavros Kolliopoulos and instructor Khalid Mengal in New York University Abu Dhabi Computer Science Department

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.