Sponsored Content
Full Discussion: Search Engine
Top Forums Web Development Search Engine Post 302519977 by DGPickett on Thursday 5th of May 2011 01:52:12 PM
Old 05-05-2011
You want a data structure that expands, updates, deletes in a other-user-invisible way, like leaf-to-root modification. Users coming down the old tree are not bothered by new trees you build to replace, or new subtrees.

A lot of code and though goes into dealing with kill-words, words and phrases that happen so often you never want to index them. You can discover them as they hit a threshold, or just trim them as needed for space.

JAVA using persistent objects may work well for this. You might want to make your own persistent objects out of map'd flat files.
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Search Engine

How do you write a search engline to search offline scripts? (3 Replies)
Discussion started by: hawaiifiver
3 Replies

2. Programming

Search Engine in C

Hello everybody, I need help with this, I need to design a CGI search engine in C but i have no idea on what or how to do it. Do i have to open all the html files one by one and search for the given strings? i think this process will be slow, and will take too much of the server processing... (11 Replies)
Discussion started by: semash!
11 Replies

3. Shell Programming and Scripting

About search engine in unix

Hello, How to create a search engine in unix using commands?...Atleast guidelines to craete this search engine...Thank you in advance. (10 Replies)
Discussion started by: Sindhu R
10 Replies

4. Homework & Coursework Questions

About search engine in unix

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: How to create a search engine in unix using commands?...Atleast guidelines to craete this search engine...Thank... (1 Reply)
Discussion started by: Sindhu R
1 Replies

5. What is on Your Mind?

YouTube: Search Engine Optimization | How To Fix Soft 404 Errors and A.I. Tales from Google Search

Getting a bit more comfortable making quick YT videos in 4K, here is: Search Engine Optimization | How To Fix Soft 404 Errors and A.I. Tales from Google Search Console https://youtu.be/I6b9T2qcqFo (0 Replies)
Discussion started by: Neo
0 Replies
tsearch(3C)															       tsearch(3C)

NAME
tsearch(), tfind(), tdelete(), twalk() - manage binary search trees SYNOPSIS
DESCRIPTION
and are routines for manipulating binary search trees. They are generalized from Knuth (6.2.2) Algorithms T and D. All comparisons are done with a user-supplied routine, compar. This routine is called with two arguments, the pointers to the elements being compared. It returns an integer less than, equal to, or greater than 0, according to whether the first argument is to be considered less than, equal to or greater than the second argument. The comparison function need not compare every byte, so arbitrary data may be contained in the ele- ments in addition to the values being compared. is used to build and access the tree. key is a pointer to an entry to be accessed or stored. If there is an entry in the tree equal to the value pointed to by key, a pointer to the previous key associated with this found entry is returned. Otherwise, key is inserted, and a pointer to it returned. Note that since the value returned is a pointer to key and key itself is a pointer, the value returned is a pointer to a pointer. Only pointers are copied, so the calling routine must store the data. rootp points to a variable that points to the root of the tree. A NULL value for the variable pointed to by rootp denotes an empty tree; in this case, the variable is set to point to the entry which will be at the root of the new tree. Like searches for an entry in the tree, returning a pointer to it if found. However, if it is not found, returns a NULL pointer. The arguments for are the same as for deletes a node from a binary search tree. Arguments are the same as for The variable pointed to by rootp is changed if the deleted node was the root of the tree. returns a pointer to the parent of the deleted node, or a NULL pointer if the node is not found. traverses a binary search tree. root is the root of the tree to be traversed. (Any node in a tree may be used as the root for a walk below that node.) action is the name of a routine to be invoked at each node. This routine is, in turn, called with three arguments: o First argument is the address of the node being visited. o Second argument is a value from an enumeration data type (defined in the header file), depending on whether this is the first, second or third time that the node has been visited (during a depth-first, left-to-right traversal of the tree), or whether the node is a leaf. o Third argument is the level of the node in the tree, with the root being level zero. EXAMPLES
The following code reads strings, and stores structures containing a pointer to each string and a count of its length. It then walks the tree, printing out the stored strings and their lengths in alphabetical order. RETURN VALUE
A NULL pointer is returned by if there is not enough space available to create a new node. A NULL pointer is returned by and if rootp is NULL on entry. If the datum is found, both and return a pointer to it. If not, returns NULL, and returns a pointer to the inserted item. WARNINGS
The root argument to is one level of indirection less than the rootp arguments to and Two nomenclatures are used to refer to the order in which tree nodes are visited. uses preorder, postorder and endorder to respectively refer to visiting a node before any of its children, after its left child and before its right and after both its children. The alternate nomenclature uses preorder, inorder, and postorder to refer to the same visits, which could result in some confusion over the meaning of postorder. If the calling function alters the pointer to the root, results are unpredictable. SEE ALSO
bsearch(3C), hsearch(3C), lsearch(3C), thread_safety(5). STANDARDS CONFORMANCE
tsearch(3C)
All times are GMT -4. The time now is 06:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy