Coder Social home page Coder Social logo

cppsortedlist's Introduction

::::::::::::::::::README::::::::::::::::::

Included files: -SortedList.h -SortedList.cpp (SOURCE CODE - implementation of ListNode and SortedList classes) -PCTimer.h -fileListFunctions.cpp (SOURCE CODE - implementation of insertAllWords/findAllWords/removeAllWords located here) -testSortedList.cpp (misc test methods and int main() located here)

-makefile -random.txt -words.txt

The program inserts words from "random.txt", checks them against all the words in "words.txt", then removes all the words from "random.txt".

In order to compile, unzip and open a terminal in the directory.

Run make then run ./testmake

You should receive results like...

Erics-MacBook-Air-2:HW3 ericwalsh$ ./testmake Beginning the testing with SortedArrayList...

SortedArrayList: Time to insertAllWords from random.txt: 43.6163 secs WERE ALL WORDS FOUND?: SortedArrayList: Time to findAllWords from words.txt: 20.9951 secs 1 SortedArrayList: Time to removeAllWords from random.txt: 22.2048 secs

Beginning the testing with SortedLinkedList...

SortedLinkedList: Time to insertAllWords from random.txt: 26.7596 secs WERE ALL WORDS FOUND?: SortedLinkedList: Time to findAllWords from words.txt: 28.2985 secs 1 SortedLinkedList: Time to removeAllWords from random.txt: 11.8437 secs

cppsortedlist's People

Contributors

ericmwalsh avatar

Watchers

James Cloos avatar  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.