Wednesday, May 18, 2016
Srch Engine Project Booln Srch Engine in C++
If you have no id of Booln Srch then follow the link below to Find about it beforeProceeding. What is Booln Srching?This Program is made in C++ which work on Basic principals ofBoolnExpressions.
Prerequisite Of Program: Advance Knowledge of File HandlingBasic Knowledge of dll(dynamic link library) files how to crte and use them.Well aware of String FunctionsObject Oriented ProgrammingStep By Step Work of Program:This program perform Following operation on data which are stated below.
Preprocessing:Convert all alphabets to low order.Remove special Characters.Remove lines less then 3 wordsIndexing:Assignindex to data of ch FileFor example there is data some thing like that in a File"Programming is Core subject of Computer science"
so after indexing it save like below in file
Programming 1is 1Core 1subject 1of 1computer 1science 1and in a final file named index file which contain all files data indexed some thing like belowProgramming 1games 23play 7hero 189
1,23,7,189 are file names from where these words are selectedSorting:In this step all data of indexed file is sorted inalphabeticallyorderPosting:In this step all word arssignedtheir posting position with frequencyFor Example:programming is appred 5 times in all files so its frequency is 5 and it saved like below in posting fileprogramming 1,56,87,2,4
Srch:Now we are rdy to give srch queries to Program. we can give 4 types of queries to ProgramSingle wordword and wordword or wordword not word1.For Single word query program shows the result of that query file name,position and frequency2.For "and" operator e.g"programming and fun"Now it works on basic principles of booln expressions the query will only be truw if both word are present in any file and it shows that file and frequency3.For "OR" operator if only one word is found then expression become true.4.For "Not" operator now condition is true and srch results of that files are shown who contain "Programming NOT game" mn that file have word programming and not game.How to Run the programDownload Rar file and Extract itCrte New project using console appliion in Visual studioNow open booln_srch.cpp file using note pad and copy all the and paste to your newly crted project editorCopy srch.dll and hellodll.h and all txt files to folder where your .cpp file is loed usually in documents>>visualstudio>>projects>>projectname>>projectname>>and paste hereCompile the Program and Run
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment