Implement data structure to store how often each word occurs

Assignment Help Computer Engineering
Reference no: EM131709672

Project Assignment

Description:

When you enter a query in a web search engine, it is not really the web that is searched, but a database of statistics about web pages. Collecting those statistics is called "indexing" the web pages, which is done before the actual searches that people perform. In this project, you will implement a data structure to store how often each word occurs in a document, which is one of the most important statistics to gather about web pages. In the next project, you will use this functionality to index several web pages as part of a simple web search engine.

The method needs to be complete:

char* indexPage(const char* url){

//get the words from the site and fill a buffer
//I suggest using fgets and fseek.
//warning you will have to allocate the buffer memory as this function
//should return a new char* reference memory address.
//How you accomplish this end goal is entirely up to your implementation tastes.

char *buff= (char*) malloc(sizeof(char));
char *words;
}

void printTrieContents(node* tNode)
{

//this method should print each word along with its occurrence count.
//I suggest making a nested while system which loops
//through the inner while until it hits a leaf,
//breaks out of the inner loop, prints a buffer and the current node's
//count var
//and then resumes the outer loop.
//Note: the middle loop should stop when it hits a null and return to the outermost
//loop.

}

+ I include the reset of the code, so you can have an idea of it.

Reference no: EM131709672

Questions Cloud

Does the writer present a coherent and succinct argument : Are major points clearly presented? Does the writer present a coherent and succinct argument? Are there parts that need more explanation or evidence?
What is the value of adding events to an animation : What is the value of adding Events to an animation? What complexities does adding user interaction to an animation introduce?
Discuss tendency to store a large amount of energy : One evolutionary explanation we discussed for why a tendency to store a large amount of energy as fat may have been adaptive
Standard and extended access control lists : What are the differences between standard and extended access control lists? Which one will give you more flexibility to control access?
Implement data structure to store how often each word occurs : Implement a data structure to store how often each word occurs in a document, which is one of the most important statistics to gather about web pages.
Discuss about the explanatory variables : A study was reported about the effects of the number of hours worked, on average, and the average hourly income on unemployment in different countries.
How can you deal with different ethical ideas : Different ethical ideas, especially for a range of diverse values and viewpoints? How might you begin increasing ethical practices within a diverse work group?
Calculate the weekly maintenance costs : Avis is interested in estimating weekly costs of maintenance of its rental cars of a certain size based on these variables: number of miles driven during.
Discuss the major issues in defining persons with mobility : What are some of the major issues in defining persons with mobility disabilities

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd